diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2022-05-25 19:25:19 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2022-05-25 19:25:19 -0700 |
commit | 72ef8c3d6dc48b108c81e2d4ff6176fff579db5c (patch) | |
tree | 76767aea5c6bd97a4adaae1d98d3d6801e22dd78 /src/modules | |
parent | d6d0dc1f30ab21a4b1ed2c76ef6c42602b1d5be6 (diff) |
setup: return the desc for failed setting on error
This commit improves the error printed when cli-supplied args
fail, adding at least the key name to what used to be just a
stringified errno:
```
$ src/rototiller --module=shapes,scale=99
Shape type:
0: circle
1: pinwheel
2: rhombus
3: star
Enter a value 0-3 [1 (pinwheel)]:
Fatal error: unable to use args for setting "scale": Invalid argument
$
```
Diffstat (limited to 'src/modules')
0 files changed, 0 insertions, 0 deletions