(fastify)
| 1943 | const fastify = Fastify() |
| 1944 | |
| 1945 | async function plugin (fastify) { |
| 1946 | fastify.setErrorHandler(function (_, request, reply) { |
| 1947 | return reply.code(401).send({ error: class="st">'Unauthorized' }) |
| 1948 | }) |
| 1949 | } |
| 1950 | |
| 1951 | plugin[Symbol.for(class="st">'skip-override')] = true |
| 1952 |
nothing calls this directly
no test coverage detected