Skip to content

Commit 0bcb1bf

Browse files
committed
Fix exception swallowing in JobExecutionShutdownHook
1 parent 52846a6 commit 0bcb1bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-batch-core/src/main/java/org/springframework/batch/core/launch/support/JobExecutionShutdownHook.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public void run() {
5555
this.logger.info("Successfully stopped job execution " + jobExecutionId);
5656
}
5757
catch (Exception e) {
58-
throw new RuntimeException("Unable to gracefully stop job execution " + jobExecutionId);
58+
throw new RuntimeException("Unable to gracefully stop job execution " + jobExecutionId, e);
5959
}
6060
}
6161

0 commit comments

Comments
 (0)