From 27fa6af2f9d82c44431e7ccfa67383e6a320d8d7 Mon Sep 17 00:00:00 2001 From: Wei Zhang Date: Thu, 5 Mar 2020 11:27:24 +0800 Subject: [PATCH] Fix uncaught exception when runner executes --- .../spark/run/action/RunConfigurationActionUtils.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/azure/hdinsight/spark/run/action/RunConfigurationActionUtils.kt b/PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/azure/hdinsight/spark/run/action/RunConfigurationActionUtils.kt index 2d33bfa417..8ab239318f 100644 --- a/PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/azure/hdinsight/spark/run/action/RunConfigurationActionUtils.kt +++ b/PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/azure/hdinsight/spark/run/action/RunConfigurationActionUtils.kt @@ -91,7 +91,11 @@ object RunConfigurationActionUtils: ILogger { }, { environment.assignNewExecutionId() - runner.execute(environment) + try { + runner.execute(environment) + } catch (err: ExecutionException) { + ProgramRunnerUtil.handleExecutionError(environment.project, environment, err, setting.configuration) + } }) }