private/lib/core/mount.js
function (err, req, res, next) {

			if (seminarjs.get('logger')) {
				if (err instanceof Error) {
					console.log((err.type ? err.type + ' ' : '') + 'Error thrown for request: ' + req.url);
				} else {
					console.log('Error thrown for request: ' + req.url);
				}
				console.log(err.stack || err);
			}

			var msg = '';

			if (seminarjs.get('env') === 'development') {

				if (err instanceof Error) {
					if (err.type) {
						msg += '<h2>' + err.type + '</h2>';
					}
					msg += utils.textToHTML(err.message);
				} else if ('object' === typeof err) {
					msg += '<code>' + JSON.stringify(err) + '</code>';
				} else if (err) {
					msg += err;
				}
			}

			res.status(500).send(seminarjs.wrapHTMLError('Sorry, an error occurred loading the page (500)', msg));
		}
function (err, req, res, next) {

			if (seminarjs.get('logger')) {
				if (err instanceof Error) {
					console.log((err.type ? err.type + ' ' : '') + 'Error thrown for request: ' + req.url);
				} else {
					console.log('Error thrown for request: ' + req.url);
				}
				console.log(err.stack || err);
			}

			var msg = '';

			if (seminarjs.get('env') === 'development') {

				if (err instanceof Error) {
					if (err.type) {
						msg += '<h2>' + err.type + '</h2>';
					}
					msg += utils.textToHTML(err.message);
				} else if ('object' === typeof err) {
					msg += '<code>' + JSON.stringify(err) + '</code>';
				} else if (err) {
					msg += err;
				}
			}

			res.status(500).send(seminarjs.wrapHTMLError('Sorry, an error occurred loading the page (500)', msg));
		}
function ( err , req , res , next ) { if ( seminarjs . get ( 'logger' ) ) { if ( err instanceof Error ) { console . log ( ( err . type ? err . type + ' ' : '' ) + 'Error thrown for request: ' + req . url ) ; } else { console . log ( 'Error thrown for request: ' + req . url ) ; } console . log ( err . stack || err ) ; } var msg = '' ; if ( seminarjs . get ( 'env' ) === 'development' ) { if ( err instanceof Error ) { if ( err . type ) { msg += '<h2>' + err . type + '</h2>' ; } msg += utils . textToHTML ( err . message ) ; } else if ( 'object' === typeof err ) { msg += '<code>' + JSON . stringify ( err ) + '</code>' ; } else if ( err ) { msg += err ; } } res . status ( 500 ) . send ( seminarjs . wrapHTMLError ( 'Sorry, an error occurred loading the page (500)' , msg ) ) ; }
Handle other errors
Handle other errors