delvedor / delvedor/fastify-example

Try Catch query

Open
#21 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
785
Forks
105
PR merge metrics
No merged PRs in 30d

Description

Thank you for sharing a really good example on how to use fastify. I had a question about [this FAQ on try / catch](encapsulatedInstance).

I noticed errors getting lost during autoload. Using try / catch, I was able to surface the error to understand what was going on. Granted that it was a DEV scenario but I was wondering if there are any insights on whether try catch should be omitted while using autoloader.

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue points to the FAQ on try/catch at the encapsulatedInstance anchor and to error handling during autoload. Start by reading that FAQ and reproducing the reported development-time error in the example. Done means reaching an agreed explanation of whether try/catch should be omitted and documenting that guidance.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
documentation
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.