From 6273e3bcc8b0e86c2aa68476c903087051a8c846 Mon Sep 17 00:00:00 2001 From: jomo Date: Wed, 6 May 2015 22:13:28 +0200 Subject: [PATCH] adjust 422 messages --- lib/routes/avatars.js | 2 +- lib/routes/capes.js | 2 +- lib/routes/renders.js | 4 ++-- lib/routes/skins.js | 2 +- test/test.js | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/routes/avatars.js b/lib/routes/avatars.js index afa627b..4e46991 100644 --- a/lib/routes/avatars.js +++ b/lib/routes/avatars.js @@ -45,7 +45,7 @@ module.exports = function(req, callback) { } else if (!helpers.id_valid(userId)) { callback({ status: -2, - body: "Invalid userid" + body: "Invalid UserID" }); return; } diff --git a/lib/routes/capes.js b/lib/routes/capes.js index b43ae9a..f97fd4c 100644 --- a/lib/routes/capes.js +++ b/lib/routes/capes.js @@ -11,7 +11,7 @@ module.exports = function(req, callback) { if (!helpers.id_valid(userId)) { callback({ status: -2, - body: "Invalid userid" + body: "Invalid UserID" }); return; } diff --git a/lib/routes/renders.js b/lib/routes/renders.js index 7ab77cb..d1932db 100644 --- a/lib/routes/renders.js +++ b/lib/routes/renders.js @@ -59,13 +59,13 @@ module.exports = function(req, callback) { if (scale < config.min_scale || scale > config.max_scale) { callback({ status: -2, - body: "422 Invalid Scale" + body: "Invalid Scale" }); return; } else if (!helpers.id_valid(userId)) { callback({ status: -2, - body: "422 Invalid ID" + body: "Invalid UserID" }); return; } diff --git a/lib/routes/skins.js b/lib/routes/skins.js index 252b05c..6e917ef 100644 --- a/lib/routes/skins.js +++ b/lib/routes/skins.js @@ -43,7 +43,7 @@ module.exports = function(req, callback) { if (!helpers.id_valid(userId)) { callback({ status: -2, - body: "Invalid userid" + body: "Invalid UserID" }); return; } diff --git a/test/test.js b/test/test.js index 3846cd6..358cce0 100644 --- a/test/test.js +++ b/test/test.js @@ -664,7 +664,7 @@ describe("Crafatar", function() { }); }); - // testing all paths for invalid userid + // testing all paths for Invalid UserID var locations = ["avatars", "skins", "capes", "renders/body", "renders/head"]; for (var l in locations) { var location = locations[l];