File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -46,11 +46,11 @@ To clarify, take this server as a example:
4646
4747``` js
4848import fastify from ' fastify'
49- import FastifyHttpErrorsEnhanced from ' fastify-http-errors-enhanced'
49+ import fastifyHttpErrorsEnhanced from ' fastify-http-errors-enhanced'
5050import { NotFoundError } from ' http-errors-enhanced'
5151
5252const server = fastify ()
53- server .register (FastifyHttpErrorsEnhanced )
53+ server .register (fastifyHttpErrorsEnhanced )
5454
5555server .get (' /invalid' , {
5656 handler : async function (request , reply ) {
@@ -104,11 +104,11 @@ To clarify, take this server as a example:
104104
105105``` js
106106import fastify from ' fastify'
107- import FastifyHttpErrorsEnhanced from ' fastify-http-errors-enhanced'
107+ import fastifyHttpErrorsEnhanced from ' fastify-http-errors-enhanced'
108108import { NotFoundError } from ' http-errors-enhanced'
109109import createError from ' http-errors'
110110
111- server .register (FastifyHttpErrorsEnhanced , { hideUnhandledErrors: false })
111+ server .register (fastifyHttpErrorsEnhanced , { hideUnhandledErrors: false })
112112
113113server .get (' /invalid' , {
114114 handler (request , reply ) {
You can’t perform that action at this time.
0 commit comments