Catch errors in middleware
Unanswered
Crucian carp posted this in #help-forum
Crucian carpOP
How do I catch errors in my middleware ?
Can I just add an error.tsx in my src directory?
Can I just add an error.tsx in my src directory?
2 Replies
Crucian carpOP
Bump
You mean catch errors that happen during the middleware? You would wrap them in
try...catch