aboutsummaryrefslogtreecommitdiff
path: root/doc/manual/rl-next/print-value-in-coercion-error.md
blob: 03ec5b26fff9d6fce68b84016413ac5b7926d3c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
---
synopsis: Coercion errors include the failing value
issues: 561
prs: 9754
credits: [9999years, horrors]
category: Improvements
---

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»}
```