Output nicer exceptions in hook call

pull/557/head
Peter 'Pita' Martischka 2012-03-04 20:32:57 +01:00
parent 5396cd68db
commit 9f03e5ec68
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ var hookCallWrapper = function (hook, hook_name, args, cb) {
try { try {
return hook.hook_fn(hook_name, args, cb); return hook.hook_fn(hook_name, args, cb);
} catch (ex) { } catch (ex) {
console.error([hook_name, hook.part.full_name, ex]); console.error([hook_name, hook.part.full_name, ex.stack || ex]);
} }
} }