Skip to content

Commit 144a0f3

Browse files
cfbolzmattip
andauthored
Update posts/2021/12/error-message-style-guides.txt
Co-authored-by: Matti Picus <[email protected]>
1 parent 9c260fa commit 144a0f3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

posts/2021/12/error-message-style-guides.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ this use case it's important that the message is short. On the other hand, 20%
5757
of the times this same message will have to be understood by a developer who
5858
has never seen it before and is confused, and so the message needs to contain
5959
enough information
60-
to allow them to find out what is going on.
60+
to allow them to find out what is going on. So the error message needs to strike
61+
a balance between brevity and clarity.
6162

6263
The Racket guide proposes to use the following general structure for errors:
6364
'State the constraint that was violated ("expected a"), followed by what was

0 commit comments

Comments
 (0)