Skip to content

Commit 3483114

Browse files
committed
Fix uncaught exception when runner executes
1 parent aab3f12 commit 3483114

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/azure/hdinsight/spark/run/action/RunConfigurationActionUtils.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,11 @@ object RunConfigurationActionUtils: ILogger {
9191
}, {
9292
environment.assignNewExecutionId()
9393

94-
runner.execute(environment)
94+
try {
95+
runner.execute(environment)
96+
} catch (err: ExecutionException) {
97+
ProgramRunnerUtil.handleExecutionError(environment.project, environment, err, setting.configuration)
98+
}
9599
})
96100
}
97101

0 commit comments

Comments
 (0)