-
Notifications
You must be signed in to change notification settings - Fork 922
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
Don't show stack trace for certain voluntary exit failure scenarios #7554
Conversation
@@ -171,6 +173,11 @@ this command outputs a deposit data string which is required to become a validat | |||
Action: func(cliCtx *cli.Context) error { | |||
featureconfig.ConfigureValidator(cliCtx) | |||
if err := ExitAccountsCli(cliCtx, os.Stdin); err != nil { | |||
msg := err.Error() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rkapka let's use errors.Is
instead of doing string comparisons
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
errors.Is
cannot be used here as I am not comparing errors. The exported messages are plain strings.
Codecov Report
@@ Coverage Diff @@
## master #7554 +/- ##
=======================================
Coverage 61.74% 61.74%
=======================================
Files 424 424
Lines 29944 29944
=======================================
Hits 18488 18488
Misses 8488 8488
Partials 2968 2968 |
What type of PR is this?
Bug fix
What does this PR do? Why is it needed?
Stack trace will not be displayed if validator could not be exited because of the following non-fatal reasons:
Which issues(s) does this PR fix?
Fixes #7534
Other notes for review
N/A