Skip to content

Commit

Permalink
changing error output
Browse files Browse the repository at this point in the history
  • Loading branch information
dhirk committed Nov 7, 2019
1 parent 5c63dca commit 22e2b0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercises/07_unit_testing/todo/modules/todo.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports.clear = () => {

module.exports.add = (item, qty) => {
qty = Number(qty)
if(isNaN(qty)) throw new Error('the quantity must be a number')
if(isNaN(qty)) throw new Error('qty must be a number')
data.push({item: item, qty: qty})
}

Expand Down

0 comments on commit 22e2b0d

Please sign in to comment.