MCPcopy Create free account
hub / github.com/fastify/fastify / onError

Function onError

test/route-hooks.test.js:617–620  ·  view source on GitHub ↗
(request, reply, error, done)

Source from the content-addressed store, hash-verified

615 fastify.get('/',
616 {
617 onError (request, reply, error, done) {
618 t.assert.deepStrictEqual(error, err)
619 done()
620 }
621 },
622 (req, reply) => {
623 reply.send(err)

Callers

nothing calls this directly

Calls 1

doneFunction · 0.50

Tested by

no test coverage detected