Fix DefaultShellApplicationRunner error handling
- Let error from ShellRunner to pass through as that's needed for other error handling and used by exit code mappings - Relates #1057
This commit is contained in:
@@ -61,11 +61,9 @@ public class DefaultShellApplicationRunner implements ShellApplicationRunner {
|
||||
String[] sourceArgs = args.getSourceArgs();
|
||||
boolean canRun = false;
|
||||
for (ShellRunner runner : shellRunners) {
|
||||
try {
|
||||
canRun = runner.run(sourceArgs);
|
||||
} catch (Exception e) {
|
||||
break;
|
||||
}
|
||||
// let exception to get thrown as needed i.e. for
|
||||
// exit code mappings
|
||||
canRun = runner.run(sourceArgs);
|
||||
if (canRun) {
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user