Skip to content

Commit 1b3febe

Browse files
committed
making error handling clearer
1 parent 27c88ca commit 1b3febe

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Sprint-3/1-implement-and-rewrite-tests/implement/3-get-card-value.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ try {
4646
getCardValue("invalid");
4747

4848
// This line will not be reached if an error is thrown as expected
49-
console.error("Error was not thrown for invalid card");
50-
} catch (e) {}
49+
console.error("Error was not thrown for invalid card 😢");
50+
} catch (e) {
51+
console.log("Error thrown for invalid card!");
52+
}
5153

5254
// What other invalid card cases can you think of?

0 commit comments

Comments
 (0)