Skip to content

Commit

Permalink
fix: value stringification for error message
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed Aug 25, 2017
1 parent 5f5f1d2 commit 37bb96b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion object/ensure-finite-number.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ var isFiniteNumber = require("./is-finite-number")

module.exports = function (value) {
if (isFiniteNumber(value)) return Number(value);
throw new TypeError(safeToString + " does not represent a finite number value");
throw new TypeError(safeToString(value) + " does not represent a finite number value");
};

0 comments on commit 37bb96b

Please sign in to comment.