mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
webaccess: Log hook errors
This commit is contained in:
parent
8919608d45
commit
7bd5435f50
1 changed files with 1 additions and 0 deletions
|
@ -42,6 +42,7 @@ exports.authnFailureDelayMs = 1000;
|
|||
exports.checkAccess = (req, res, next) => {
|
||||
const hookResultMangle = (cb) => {
|
||||
return (err, data) => {
|
||||
if (err != null) httpLogger.error(`Error during access check: ${err}`);
|
||||
return cb(!err && data.length && data[0]);
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue