Add warning when hook stack encounters error

This commit is contained in:
Maxime Besson 2021-02-01 16:58:04 +01:00
parent 6a3b83a70d
commit 090fad7475

View File

@ -57,6 +57,9 @@ sub processHook {
$self->logger->debug("Not a code ref: $sub");
}
}
if ($err != PE_OK) {
$self->logger->warn("Hook $hookName returned ".portalConsts->{$err});
}
return $err;
}