index.js
function(method, view) {
    return function (err) {
      if (err) {
        err.reason = 'Template#handle' + method + ': ' + view.path;
        return err;
      }
    };
  }
function(method, view) {
    return function (err) {
      if (err) {
        err.reason = 'Template#handle' + method + ': ' + view.path;
        return err;
      }
    };
  }
function ( method , view ) { return function ( err ) { if ( err ) { err . reason = 'Template#handle' + method + ': ' + view . path ; return err ; } } ; }
Handle middleware errors.
Handle middleware errors .