lib/core/index.js
function getMiddlewareWrapper( middleware ) {
	return function ( req, res, next ) {
		try {
			middleware( req, res, next );
		}
		catch ( e ) {
			getResponder( req, res )( 500 );
		}
	};
}
function getMiddlewareWrapper( middleware ) {
	return function ( req, res, next ) {
		try {
			middleware( req, res, next );
		}
		catch ( e ) {
			getResponder( req, res )( 500 );
		}
	};
}
function getMiddlewareWrapper ( middleware ) { return function ( req , res , next ) { try { middleware ( req , res , next ) ; } catch ( e ) { getResponder ( req , res ) ( 500 ) ; } } ; }
This wrapper simply traps any uncaught exceptions.

@param middleware The middleware function to wrap
@return {Function} The wrapper function to pass to express
This wrapper simply traps any uncaught exceptions .