diff --git a/Models/ThemeConfig/LayerConfig.ts b/Models/ThemeConfig/LayerConfig.ts index e4fe9cb4b..24fc810bd 100644 --- a/Models/ThemeConfig/LayerConfig.ts +++ b/Models/ThemeConfig/LayerConfig.ts @@ -175,7 +175,7 @@ export default class LayerConfig extends WithContextLoader { try { new Function("feat", "return " + code + ";"); } catch (e) { - throw `Invalid function definition: code ${code} is invalid:${e} (at ${context})` + throw `Invalid function definition: the custom javascript is invalid:${e} (at ${context}). The offending javascript code is:\n ${code}` }