Browse Source

Fix missing space in error message

pull/292/head
Julian Simioni 9 years ago
parent
commit
d11d185429
  1. 2
      sanitiser/_ids.js
  2. 2
      test/unit/sanitiser/_ids.js

2
sanitiser/_ids.js

@ -12,7 +12,7 @@ var ID_DELIM = ':';
var lengthError = 'invalid param \'ids\': length must be >0'; var lengthError = 'invalid param \'ids\': length must be >0';
var formatError = function(input) { var formatError = function(input) {
return 'id `' + input + 'is invalid: must be of the format type:id for ex: \'geoname:4163334\''; return 'id `' + input + ' is invalid: must be of the format type:id for ex: \'geoname:4163334\'';
}; };
function sanitizeId(rawId, messages) { function sanitizeId(rawId, messages) {

2
test/unit/sanitiser/_ids.js

@ -8,7 +8,7 @@ var inputs = {
}; };
var formatError = function(input) { var formatError = function(input) {
return 'id `' + input + 'is invalid: must be of the format type:id for ex: \'geoname:4163334\''; return 'id `' + input + ' is invalid: must be of the format type:id for ex: \'geoname:4163334\'';
}; };
var lengthError = 'invalid param \'ids\': length must be >0'; var lengthError = 'invalid param \'ids\': length must be >0';
var defaultMissingTypeError = function(input) { var defaultMissingTypeError = function(input) {

Loading…
Cancel
Save