Skip to content

Commit

Permalink
feat: improve non-stringifiable string representation
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed Mar 22, 2018
1 parent 9bf6bc7 commit 2e4512d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion safe-to-string.js
Expand Up @@ -7,6 +7,6 @@ module.exports = function (value) {
if (value && isCallable(value.toString)) return value.toString();
return String(value);
} catch (e) {
return "<non-stringifiable value>";
return "[Non-stringifiable value]";
}
};

0 comments on commit 2e4512d

Please sign in to comment.