summaryrefslogtreecommitdiff
path: root/src/scripts.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripts.c')
-rw-r--r--src/scripts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scripts.c b/src/scripts.c
index 120b1f9c..5db50b69 100644
--- a/src/scripts.c
+++ b/src/scripts.c
@@ -2023,7 +2023,7 @@ void
scripts_init_script(const char *path, const char *script) {
if (m_global_context == NULL)
create_global_object();
- char *debug = g_strdup_printf("try { %s } catch(e) { io.debug(\"In file %s\", e); }", script, path);
+ char *debug = g_strdup_printf("\ntry{/*<dwb*/%s/*dwb>*/}catch(e) { io.debug({message : \"In file %s\", error : e}); }", script, path);
JSObjectRef function = js_make_function(m_global_context, debug);
if (function != NULL) {
m_script_list = g_slist_prepend(m_script_list, function);