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