learning express error handle
code:
const express = require('express'); const app = express(); app.get('/', function (req, res){ throw new Error("BROKEN"); }); app.listen(3000);
result: