Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mesqueeb committed Jan 29, 2024
1 parent 8d69ced commit be02290
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/core/src/moduleActions/handleAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,8 @@ export async function handleAction(args: {
throw error
}
if (onError === 'revert') {
stopExecutionAfterAction('revert')
// we need to revert first, then throw the error later
return error
stopExecutionAfterAction('revert')
}
return error
}
Expand Down

0 comments on commit be02290

Please sign in to comment.