Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Automattic/mongoose
/ errorHandler
Function
errorHandler
test/query.middleware.test.js:404–407 ·
view source on GitHub ↗
(err, res, next)
Source
from the content-addressed store, hash-verified
402
403
let
called = false;
404
const
errorHandler =
function
(err, res, next) {
405
called = true;
406
next();
407
};
408
409
schema.post(
'findOneAndUpdate'
, errorHandler);
410
Callers
nothing calls this directly
Calls
1
next
Function · 0.50
Tested by
no test coverage detected