Skip to content

Commit 41b827d

Browse files
authored
Update error-types.md
1 parent 5ccd790 commit 41b827d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

error-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,5 +160,5 @@ If you find yourself testing for multiple error conditions dont fall in to the t
160160

161161
This leads to flaky and difficult to read/write tests and it reflects the difficulties the users of your code will have if they also need to start doing things differently depending on the kind of errors that have occurred.
162162

163-
Always make sure your tests reflect how _you'd_ like to use your code, so in this respect consider creating an error type to encapsulate your kinds of errors. This makes handling different kinds of errors easier for users of your code and also makes writing your error handling code simpler and easier to read.
163+
Always make sure your tests reflect how _you'd_ like to use your code, so in this respect consider creating error types to encapsulate your kinds of errors. This makes handling different kinds of errors easier for users of your code and also makes writing your error handling code simpler and easier to read.
164164

0 commit comments

Comments
 (0)