8000 docs: Make Handle errors section up to date with API by smith558 · Pull Request #6456 · fastify/fastify · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@smith558
Copy link
Contributor
@smith558 smith558 commented Jan 17, 2026

This PR updates the “Handle errors” section of the Hitchhiker’s Guide to reflect Fastify’s current public API.

The previous text described after() as supporting callbacks with up to three parameters, which reflects historical / Avvio-internal behaviour but is no longer part of Fastify’s documented or typed API. Today, fastify.after() supports either:

  • a single error-first callback, or
  • a promise-based form when called without arguments.

The updated section removes references to unsupported callback arities, aligns the documentation with the current typings and behaviour, and keeps the guidance focused on supported, user-facing usage.

No functional changes are introduced. This is a documentation correctness and clarity improvement only.

Signed-off-by: Stanislav (Stanley) Modrak <44023416+smith558@users.noreply.github.com>
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Jan 17, 2026
Copy link
Member
@metcoder95 metcoder95 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you fix the linting issues?

@smith558
Copy link
Contributor Author

Can you fix the linting issues?

I will asap. Busy this week. Feel free to edit PR if needed, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0