MCPcopy Index your code
hub / github.com/share/sharedb / passError

Function passError

test/middleware.js:18–20  ·  view source on GitHub ↗
(_request, next)

Source from the content-addressed store, hash-verified

16
17 var expectedError = new Error('Bad dog!');
18 function passError(_request, next) {
19 return next(expectedError);
20 }
21 function getErrorTest(done) {
22 return function(err) {
23 expect(err).to.eql(expectedError);

Callers

nothing calls this directly

Calls 1

nextFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…