Skip to content

Commit

Permalink
fix(hooks): Throw exception on execution failure. Relates to #820
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Aug 8, 2022
1 parent b07c232 commit fef49ae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void execute(String step, Runnable runnable) {
runnable.run();
} catch (RuntimeException e) {
executeHooks(ExecutionEvent.failure(step));
return;
throw e;
}
executeHooks(ExecutionEvent.success(step));
}
Expand Down

0 comments on commit fef49ae

Please sign in to comment.