Add warning when hook stack encounters error
This commit is contained in:
parent
6a3b83a70d
commit
090fad7475
|
@ -57,6 +57,9 @@ sub processHook {
|
||||||
$self->logger->debug("Not a code ref: $sub");
|
$self->logger->debug("Not a code ref: $sub");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if ($err != PE_OK) {
|
||||||
|
$self->logger->warn("Hook $hookName returned ".portalConsts->{$err});
|
||||||
|
}
|
||||||
return $err;
|
return $err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user