Skip to content

Commit

Permalink
Merge pull request #1055 from codeforboston/fix__valueFixers-error-check
Browse files Browse the repository at this point in the history
Fix error handling, Issue #937
  • Loading branch information
knod authored Jan 31, 2019
2 parents 024f209 + 925a150 commit 4be9e1d
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 (trueOrError instanceof Error) {
throw (trueOrError);
}

Expand Down

0 comments on commit 4be9e1d

Please sign in to comment.