Commit c0cef78
committed
loader: Fix error message for invalid enum values
Currently if you use --freebsd/toolchain=invalid-value, you get a big
stack trace pointing at this code with the final two lines giving two
copies of the error message intended for the user (along with calling it
and unhaldned exception). Fix this by raising ValueError instead as
caught by the calling code. Also print the enums in kebab-case rather
than snake_case to match the --help output and how we expect users to
provide these values.1 parent 7dea59d commit c0cef78
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| |||
0 commit comments