Update 'Error Handling'
parent
8b9f57f757
commit
d42c20117c
@ -10,7 +10,7 @@ When writing error messages, present the user with something very plain. Do not
|
||||
For example, say you wanted to produce an error when a value of one type can't be passed as another type. You could do:
|
||||
|
||||
```
|
||||
type mismatch: cannot pass String:1 (aka {U32 ..}:1) into U64:1
|
||||
type mismatch: cannot pass U64:1 into String:1 (aka {U32 ..}:1)
|
||||
```
|
||||
|
||||
... Which is messy, and contains useless information, thereby sacrificing clarity. You could try:
|
||||
|
Reference in New Issue
Block a user