Permalink
Browse files

fix casing so controller dispatch errors are handled properly. see #184

  • Loading branch information...
1 parent b671867 commit f3d0ce12307d945e3de315161f082946c0d2cf5e @polotek polotek committed Sep 16, 2012
Showing with 4 additions and 5 deletions.
  1. +4 −5 lib/app.js
View
@@ -152,7 +152,6 @@ var App = function () {
var controllerDir = 'app/controllers'
, dirList = _getDirList(controllerDir)
, item
- , ctors = {}
, ctor
, ctorActions;
@@ -613,11 +612,11 @@ var App = function () {
}
// no controller, 500 error
else {
- err = new errors.internalservererror('controller ' +
+ err = new errors.InternalServerError('controller ' +
params.controller + ' not found.');
- errresp = new response.response(resp);
- errresp.send(err.message, err.statuscode,
- {'content-type': 'text/html'});
+ errResp = new response.Response(resp);
+ errResp.send(err.message, err.statusCode,
+ {'Content-Type': 'text/html'});
}
}
}

1 comment on commit f3d0ce1

@mde
Contributor
mde commented on f3d0ce1 Sep 16, 2012

Ugh, accidental Vim lowercasing -- hitting "u" meaning to undo, but lowercasing a selection. Those lines are totally mine, from 0932bb4

Please sign in to comment.