You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Better error message in case of conversion error (#3402)
## Changes
Improve error message when converting typed struct to dynamic.
## Why
Currently different functions share the message body, so you don't know
which field failed to convert.
Real example when working on #3390
test acceptance/bundle/deploy/jobs/double-underscore-keys triggers this
error condition:
Before this change "bundle deploy" fails with:
```
Warn: unable to convert typed configuration to dynamic configuration: unhandled type: string
Error: exit error: unhandled type: string
```
After:
```
Warn: unable to convert typed configuration to dynamic configuration: cannot convert int field to dynamic type "string": src=4611686018427387911 ref="4611686018427387911"
Error: exit error: cannot convert int field to dynamic type "string": src=4611686018427387911 ref="4611686018427387911"
```
## Tests
Manually, by applying this commit on
#3390
0 commit comments