Better hook debug printout

This commit is contained in:
Egil Moeller 2012-02-25 15:44:04 +01:00
parent a5245c896a
commit 1c0734e97b
3 changed files with 23 additions and 5 deletions

View file

@ -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]);
}