Skip to content

Commit

Permalink
Add unhandled error
Browse files Browse the repository at this point in the history
  • Loading branch information
chasers committed Jun 30, 2021
1 parent 786783d commit 3682f78
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pages/api/error-uncaught.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export default function handler(req, res) {

// This will blow up

statusCode = response.statusCode

res.status(500).json({ error: 'true' })
}

0 comments on commit 3682f78

Please sign in to comment.