Skip to content

Commit

Permalink
no more error slicing
Browse files Browse the repository at this point in the history
  • Loading branch information
mapsam committed Mar 24, 2017
1 parent 12df2eb commit 9571e8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/invalid.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var util = require('util');

module.exports = function invalid(message) {
if (typeof message === 'string') {
message = (util.format.apply(this, arguments)).slice(0, 255);
message = util.format.apply(this, arguments);
}

var err = message instanceof Error ? message : new Error(message);
Expand Down

0 comments on commit 9571e8e

Please sign in to comment.