Improve js logging error message

This commit is contained in:
Adria Navarro 2024-02-19 19:53:36 +01:00
parent 0b84957ad0
commit 9f5d4811ba
1 changed files with 3 additions and 1 deletions

View File

@ -16,7 +16,9 @@ export function init() {
if (env.LOG_JS_ERRORS) {
setOnErrorLog((error: Error) => {
logging.logWarn(JSON.stringify(serializeError(error)))
logging.logWarn(
`Error while executing js: ${JSON.stringify(serializeError(error))}`
)
})
}
}