mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
Better hook debug printout
This commit is contained in:
parent
a5245c896a
commit
1c0734e97b
3 changed files with 23 additions and 5 deletions
|
@ -5,7 +5,7 @@ var async = require("async");
|
|||
var hookCallWrapper = function (hook, hook_name, args, cb) {
|
||||
if (cb === undefined) cb = function (x) { return x; };
|
||||
try {
|
||||
return hook.hook(hook_name, args, cb);
|
||||
return hook.hook_fn(hook_name, args, cb);
|
||||
} catch (ex) {
|
||||
console.error([hook_name, hook.part.full_name, ex]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue