Error-Handling
Of course, you will probably want to handle these errors, and potentially render views upon catching them.
You can also turn on the useZone
flag in or another driver (i.e. HTTP/2) to run eachrequest in its own Zone
, though by Angel 2, this is no longer necessary.
// completely replacing the functionality.
var oldErrorHandler = app.errorHandler;
// Do something else special...
} else {
// Otherwise, use the default functionality.
return oldErrorHandler(e, req, res);
}
Next Up…
Congratulations! You have completed the basic Angel tutorials. Take what you’ve learned on a spin in a small side project, and then move on to learning about .