Skip to content

Commit

Permalink
Update function to throw a message, not an object
Browse files Browse the repository at this point in the history
  • Loading branch information
stevehopkinson authored Feb 4, 2017
1 parent 9a7193e commit 5a3735e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assert-equals.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ function assertEquals (message, expected, actual) {
deepEquals(expected, actual);
}
catch (failure) {
throw ({message: `${message} ${failure.message}`});
throw (`${message} ${failure.message}`);
}
};

Expand Down

0 comments on commit 5a3735e

Please sign in to comment.