Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client panic on wrong input #4052

Open
opsecx opened this issue Nov 19, 2024 · 1 comment
Open

Client panic on wrong input #4052

opsecx opened this issue Nov 19, 2024 · 1 comment

Comments

@opsecx
Copy link

opsecx commented Nov 19, 2024

UX I guess, but there are times when the client application panics just due to wrongly formatted input. It would be prettier if it just displayed an error message.

For instance:

namadac find-validator --validator djsksksk
The application panicked (crashed).
Message: called Result::unwrap() on an Err value: "Unknown address djsksksk"
Location: crates/apps_lib/src/cli/context.rs:271

namadac validator-state --validator fjdsksk
The application panicked (crashed).
Message: called Result::unwrap() on an Err value: "Unknown address fjdsksk"
Location: crates/apps_lib/src/cli/context.rs:271

@opsecx
Copy link
Author

opsecx commented Nov 19, 2024

I think there are other such cases in other contexts, may be a more general thing with inputs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant