Output nicer exceptions in hook call
parent
5396cd68db
commit
9f03e5ec68
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue