mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 08:26:16 -04:00
Output nicer exceptions in hook call
This commit is contained in:
parent
5396cd68db
commit
9f03e5ec68
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue