Permalink
Browse files

[fix] Typos and res.error is not defined

  • Loading branch information...
1 parent 11dfff9 commit f62d3a28391d9b662b9b60485337aab0a694e2df @alejandro alejandro committed Jun 9, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/domains.js
View
@@ -53,7 +53,7 @@ module.exports = {
}
});
} else {
- res.json(400, {"status": 'failure - ' + gooddomain + });
+ res.json(400, {"status": 'failure - ' + gooddomain });
}
},
delete: function(req, res, next) {
@@ -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",
@@ -100,7 +100,7 @@ module.exports = {
});
} else {
res.json(400, {
- "status": "failure - " + gooddomain +
+ "status": "failure - " + gooddomain
});
}
},

0 comments on commit f62d3a2

Please sign in to comment.