Skip to content

Commit

Permalink
forward error to reply.send() instead of done() onRequest and preHand…
Browse files Browse the repository at this point in the history
…ler (fastify#2596)

update lifecycle: onRequest and preHandler return custom error code

Co-authored-by: jack.wu <[email protected]>
  • Loading branch information
jackneer and JackWuWeMo authored Oct 2, 2020
1 parent 024ed06 commit 810f88a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/Lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Incoming Request
└─▶ Instance Logger
404 ◀─┴─▶ onRequest Hook
4**/5** ◀─┴─▶ onRequest Hook
4**/5** ◀─┴─▶ preParsing Hook
Expand All @@ -20,7 +20,7 @@ Incoming Request
415 ◀─┴─▶ Validation
400 ◀─┴─▶ preHandler Hook
4**/5** ◀─┴─▶ preHandler Hook
4**/5** ◀─┴─▶ User Handler
Expand Down

0 comments on commit 810f88a

Please sign in to comment.