ScriptDefinitionsManager: shouldn't catch ControlFlowException

#EA-209928 Fixed
This commit is contained in:
Dmitry Gridin
2019-10-09 14:34:42 +07:00
parent ee8e9a76f9
commit 585222b4bb
@@ -255,6 +255,8 @@ fun loadDefinitionsFromTemplates(
LOG.warn("[kts] cannot load script definition class $templateClassName")
null
} catch (e: Throwable) {
if (e is ControlFlowException) throw e
val message = "[kts] cannot load script definition class $templateClassName"
val thirdPartyPlugin = PluginManagerCore.getPluginByClassName(templateClassName)
if (thirdPartyPlugin != null) {