Include syntax errors in processJS

This commit is contained in:
Sam Rose 2024-10-04 10:32:33 +01:00
parent 831c81a99c
commit 28e6a03929
No known key found for this signature in database
1 changed files with 4 additions and 1 deletions

View File

@ -126,7 +126,10 @@ export function processJS(handlebars: string, context: any) {
throw error throw error
} }
// If all else fails, generic error message. if (error.name === "SyntaxError") {
return error.toString()
}
return "Error while executing JS" return "Error while executing JS"
} }
} }