Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

express generator error handling

app.get('/', function (req, res) {
  throw new Error('BROKEN') // Express will catch this on its own.
})
Source by expressjs.com #
 
PREVIOUS NEXT
Tagged: #express #generator #error #handling
ADD COMMENT
Topic
Name
6+4 =