Skip to content

Commit

Permalink
Fix ProcessUnrecoverableException detection
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
  • Loading branch information
pditommaso committed Jul 13, 2024
1 parent d9c50e5 commit 17ec6c9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1139,7 +1139,7 @@ class TaskProcessor {
final action = task.config.getErrorStrategy()

// retry is not allowed when the script cannot be compiled or similar errors
if( error instanceof ProcessUnrecoverableException ) {
if( error instanceof ProcessUnrecoverableException || error.cause instanceof ProcessUnrecoverableException ) {
return !action.soft ? action : TERMINATE
}

Expand Down

0 comments on commit 17ec6c9

Please sign in to comment.