ScriptDefinitionsManager: shouldn't catch ControlFlowException
#EA-209928 Fixed
This commit is contained in:
@@ -255,6 +255,8 @@ fun loadDefinitionsFromTemplates(
|
|||||||
LOG.warn("[kts] cannot load script definition class $templateClassName")
|
LOG.warn("[kts] cannot load script definition class $templateClassName")
|
||||||
null
|
null
|
||||||
} catch (e: Throwable) {
|
} catch (e: Throwable) {
|
||||||
|
if (e is ControlFlowException) throw e
|
||||||
|
|
||||||
val message = "[kts] cannot load script definition class $templateClassName"
|
val message = "[kts] cannot load script definition class $templateClassName"
|
||||||
val thirdPartyPlugin = PluginManagerCore.getPluginByClassName(templateClassName)
|
val thirdPartyPlugin = PluginManagerCore.getPluginByClassName(templateClassName)
|
||||||
if (thirdPartyPlugin != null) {
|
if (thirdPartyPlugin != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user