Include syntax errors in processJS
This commit is contained in:
parent
831c81a99c
commit
28e6a03929
|
@ -126,7 +126,10 @@ export function processJS(handlebars: string, context: any) {
|
|||
throw error
|
||||
}
|
||||
|
||||
// If all else fails, generic error message.
|
||||
if (error.name === "SyntaxError") {
|
||||
return error.toString()
|
||||
}
|
||||
|
||||
return "Error while executing JS"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue