Skip to content

Commit

Permalink
Fix error handling, Issue #937
Browse files Browse the repository at this point in the history
  • Loading branch information
migueldcepeda committed Jan 29, 2019
1 parent 024f209 commit 231f137
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/valueFixers.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const toNumber = function (numberOrString) {

let trueOrError = isNumberlike(numberOrString);

if (typeof trueOrError === `object`) {
if (typeof trueOrError instanceof Error) {
throw (trueOrError);
}

Expand Down

0 comments on commit 231f137

Please sign in to comment.