grappling-hook icon indicating copy to clipboard operation
grappling-hook copied to clipboard

Is error handling middleware necessary?

Open creynders opened this issue 10 years ago • 0 comments

As suggested by @mattapperson in #15 it might be useful to have error handling middleware. Decisions to make: How are they registered? To qualified hook identifiers? Or action identifiers? Or post only? What would their signature be? (err, p0, p1, p2) or simply (err)? Do we allow async error handlers or strictly synced? How does this integrate with promises? Also, what sequence would they run in? Before the final callback or after?

creynders avatar Nov 26 '15 09:11 creynders