Skip to main content

app.onError

Custom send error response globaly.


app.get("/", (rev) => {
rev.noop();
});

app.onError((err, rev) => {
return err.message;
// => rev.noop is a not function
});