This commit is contained in:
Daniel García Aubert 2018-04-16 18:57:28 +02:00
parent d5c591317b
commit 98d15e2e34

View File

@ -12,7 +12,7 @@ module.exports = function coordinates (validate = { z: true, x: true, y: true })
return next(err);
}
// Negatives values for x param are valid. The x param is wrapped
// Negative values for x param are valid. The x param is wrapped
if (validate.x && !integerNumber.test(x)) {
const err = new Error(`Invalid coodinate 'x' value (${x}). It should be a number`);
err.http_status = 400;