From 9f03e5ec68b9a999e0a428dbc695e7134848e131 Mon Sep 17 00:00:00 2001 From: Peter 'Pita' Martischka Date: Sun, 4 Mar 2012 20:32:57 +0100 Subject: [PATCH] Output nicer exceptions in hook call --- src/static/js/pluginfw/hooks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/static/js/pluginfw/hooks.js b/src/static/js/pluginfw/hooks.js index 7141d75f..1b09a6e5 100644 --- a/src/static/js/pluginfw/hooks.js +++ b/src/static/js/pluginfw/hooks.js @@ -12,7 +12,7 @@ var hookCallWrapper = function (hook, hook_name, args, cb) { try { return hook.hook_fn(hook_name, args, cb); } catch (ex) { - console.error([hook_name, hook.part.full_name, ex]); + console.error([hook_name, hook.part.full_name, ex.stack || ex]); } }