aboutsummaryrefslogtreecommitdiff
path: root/doc/manual/rl-next/print-value-in-coercion-error.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/manual/rl-next/print-value-in-coercion-error.md')
-rw-r--r--doc/manual/rl-next/print-value-in-coercion-error.md24
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/manual/rl-next/print-value-in-coercion-error.md b/doc/manual/rl-next/print-value-in-coercion-error.md
new file mode 100644
index 000000000..046e4e3cf
--- /dev/null
+++ b/doc/manual/rl-next/print-value-in-coercion-error.md
@@ -0,0 +1,24 @@
+---
+synopsis: Coercion errors include the failing value
+issues: #561
+prs: #9754
+---
+
+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»}
+```