-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Customizable error message prefix #2023
Commits on Aug 31, 2023
-
[add] The error message prefix
The user can change it by specifying `errPrefix` by `SetErrPrefix`.
Configuration menu - View commit details
-
Copy full SHA for 48dabba - Browse repository at this point
Copy the full SHA 48dabbaView commit details -
[update] Use the prefix,
Error:
by defaultIf there's no specifying, return the prefix used before.
Configuration menu - View commit details
-
Copy full SHA for ff58b53 - Browse repository at this point
Copy the full SHA ff58b53View commit details -
Configuration menu - View commit details
-
Copy full SHA for a76559e - Browse repository at this point
Copy the full SHA a76559eView commit details
Commits on Sep 1, 2023
-
[update] Test for
SetErrPrefix()
If it doesn't output any errors, fails the test.
Configuration menu - View commit details
-
Copy full SHA for da3c9ee - Browse repository at this point
Copy the full SHA da3c9eeView commit details
Commits on Sep 8, 2023
-
[update] Several changes that were reviewed
Fix some grammar misses and use `cmd` for subcommands.
Configuration menu - View commit details
-
Copy full SHA for fabc43c - Browse repository at this point
Copy the full SHA fabc43cView commit details -
[update] More tests that were requested
Root error prefix called from subcommand, and different error prefixes in root and subcommand. #2023 (comment)
Configuration menu - View commit details
-
Copy full SHA for ed4583e - Browse repository at this point
Copy the full SHA ed4583eView commit details -
Configuration menu - View commit details
-
Copy full SHA for f2b602c - Browse repository at this point
Copy the full SHA f2b602cView commit details -
[fix] Forgot to change
c.ErrPrefix()
tocmd.ErrPrefix()
To use an error prefix of subcommand as well.
Configuration menu - View commit details
-
Copy full SHA for 5dec565 - Browse repository at this point
Copy the full SHA 5dec565View commit details -
[revert] Crude change of
c.ErrPrefix()
Since `cmd` is `nil` or same as `c`.
Configuration menu - View commit details
-
Copy full SHA for c24c3fd - Browse repository at this point
Copy the full SHA c24c3fdView commit details