Skip to content

Commit

Permalink
[fix] Typos and res.error is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandro committed Jun 9, 2012
1 parent 11dfff9 commit f62d3a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/domains.js
Expand Up @@ -53,7 +53,7 @@ module.exports = {
}
});
} else {
res.json(400, {"status": 'failure - ' + gooddomain + });
res.json(400, {"status": 'failure - ' + gooddomain });
}
},
delete: function(req, res, next) {
Expand All @@ -69,7 +69,7 @@ module.exports = {
aliasdomains.get(domain, function(err, doc) {
if (err) {
if (err.error == 'not_found') {
res.json(400, {"status": "failure - domain not found."}\n);
res.json(400, {"status": "failure - domain not found."});
} else {
res.json(400, {
status: "failure",
Expand Down Expand Up @@ -100,7 +100,7 @@ module.exports = {
});
} else {
res.json(400, {
"status": "failure - " + gooddomain +
"status": "failure - " + gooddomain
});
}
},
Expand Down

0 comments on commit f62d3a2

Please sign in to comment.