Skip to content
This repository has been archived by the owner on Aug 23, 2022. It is now read-only.

Would nicer error messages be possible? #14

Open
torpak opened this issue May 23, 2018 · 1 comment
Open

Would nicer error messages be possible? #14

torpak opened this issue May 23, 2018 · 1 comment
Labels
enhancement New feature or request

Comments

@torpak
Copy link

torpak commented May 23, 2018

When i didn't provide a valid boolean, i got a not so nice error message:

thor bla aged
thread 'main' panicked at 'Failed to parse value. Double check!: ParseBoolError { _priv: () }', libcore/result.rs:945:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.

Would it be possible to instead print something like:
Error: <drunk> needs to be "true" or "false"
or something similar?

@spacekookie spacekookie added the enhancement New feature or request label May 27, 2018
@spacekookie
Copy link
Collaborator

This would be really nice 👍 I'll look into doing this in a way that is nicely expandable in the future as well.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants