Skip to content

Commit

Permalink
feat: improve patch strings format
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed May 24, 2018
1 parent a2d4e62 commit d4c56e5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modifiers/d.js
Expand Up @@ -4,6 +4,6 @@ module.exports = function (value/*, placeholder, argIndex, args*/) {
try {
return String(Number(value));
} catch (e) {
return "[Non-coercible (to number) value]";
return "<Non-coercible (to number) value>";
}
};
2 changes: 1 addition & 1 deletion modifiers/f.js
Expand Up @@ -4,6 +4,6 @@ module.exports = function (value/*, placeholder, argIndex, args*/) {
try {
return String(isNaN(value) ? parseFloat(value) : Number(value));
} catch (e) {
return "[Non-coercible (to float) value]";
return "<Non-coercible (to float) value>";
}
};
2 changes: 1 addition & 1 deletion modifiers/i.js
Expand Up @@ -6,6 +6,6 @@ module.exports = function (value/*, placeholder, argIndex, args*/) {
try {
return String(isNaN(value) ? parseInt(value, 10) : toInteger(value));
} catch (e) {
return "[Non-coercible (to integer) value]";
return "<Non-coercible (to integer) value>";
}
};
2 changes: 1 addition & 1 deletion modifiers/j.js
Expand Up @@ -16,6 +16,6 @@ module.exports = function (value/*, placeholder, argIndex, args*/) {
return JSON.stringify(value, null, " ");
} catch (e) {
if (e.message === CIRCULAR_JSON_ERROR_MESSAGE) return "[Circular JSON]";
return "[Non-serializable (to JSON) value]";
return "<Non-serializable (to JSON) value>";
}
};

0 comments on commit d4c56e5

Please sign in to comment.