You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The \fIerrorHandler\fR middleware responds to exceptions passed or caught from within middleware above it, according to the options shown below\.
.
.IP""4
.
.nf
connect\.createServer(
function(req, res, next){
throw new Error(\'ahhhh!\');
},
connect\.errorHandler({ dumpExceptions: true })
);
.
.fi
.
.IP""0
.
.P
By default the response of \fIerrorHandler\fR is 500 \'Internal Server Error\'\. If \fIshowStack\fR is true, then Connect decides how to respond based on the \fIAccept\fR request header:
.
.IP""4
.
.nf
text/html Outputs an html version of the stack trace