Skip to content
This repository has been archived by the owner on May 10, 2019. It is now read-only.

Commit

Permalink
fix a couple typos in request error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
lloyd committed Jun 8, 2012
1 parent c7ff63c commit 798a146
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/browserid/views.js
Expand Up @@ -173,7 +173,7 @@ exports.setup = function(app) {
} else {
// this is stage or production, explicitly disable all resources under /test
app.get(/^\/test/, function(req, res) {
httputils.notFound("Cannot " + req.method + " " + req.url);
httputils.notFound(res, "Cannot " + req.method + " " + req.url);
});
}

Expand Down
2 changes: 1 addition & 1 deletion lib/wsapi/stage_user.js
Expand Up @@ -59,7 +59,7 @@ exports.process = function(req, res) {
if (err) {
if (err.indexOf('exceeded') != -1) {
logger.warn("max load hit, failing on auth request with 503: " + err);
return httputils.serviceUnavailable("server is too busy");
return httputils.serviceUnavailable(res, "server is too busy");
}
logger.error("can't bcrypt: " + err);
return res.json({ success: false });
Expand Down

0 comments on commit 798a146

Please sign in to comment.