2024-03-08 04:06:09 +00:00
|
|
|
---
|
|
|
|
synopsis: Coercion errors include the failing value
|
2024-03-26 16:24:58 +00:00
|
|
|
issues: 561
|
|
|
|
prs: 9754
|
2024-05-15 02:14:58 +00:00
|
|
|
credits: [9999years, horrors]
|
|
|
|
category: Improvements
|
2024-03-08 04:06:09 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
The `error: cannot coerce a <TYPE> to a string` message now includes the value
|
|
|
|
which caused the error.
|
|
|
|
|
|
|
|
Before:
|
|
|
|
|
|
|
|
```
|
|
|
|
error: cannot coerce a set to a string
|
|
|
|
```
|
|
|
|
|
|
|
|
After:
|
|
|
|
|
|
|
|
```
|
|
|
|
error: cannot coerce a set to a string: { aesSupport = «thunk»;
|
|
|
|
avx2Support = «thunk»; avx512Support = «thunk»; avxSupport = «thunk»;
|
|
|
|
canExecute = «thunk»; config = «thunk»; darwinArch = «thunk»; darwinMinVersion
|
|
|
|
= «thunk»; darwinMinVersionVariable = «thunk»; darwinPlatform = «thunk»; «84
|
|
|
|
attributes elided»}
|
|
|
|
```
|