mirror of
https://github.com/denoland/std.git
synced 2024-11-21 20:50:22 +00:00
chore: add a note about error message format exception (#5797)
This commit is contained in:
parent
0019ac7c78
commit
d51b349381
6
.github/CONTRIBUTING.md
vendored
6
.github/CONTRIBUTING.md
vendored
@ -257,3 +257,9 @@ Bad: Cannot compute the square root for x: value must not be negative
|
||||
Good: Cannot compute the square root for x: current value is ${x}
|
||||
Better: Cannot compute the square root for x as x must be >= 0: current value is ${x}
|
||||
```
|
||||
|
||||
#### Exceptions
|
||||
|
||||
The assertion package uses periods to end sentences in error messages. There are
|
||||
a number of downstream packages that expect this behavior and changing it would
|
||||
be a breaking change.
|
||||
|
Loading…
Reference in New Issue
Block a user