Error Prefix Not Shown With Error Messages #885
Labels
kind/bug
Categorizes issue or PR as related to a bug.
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
Bug report
An error prefix is not displayed with error messages. Only the error message is shown.
Cobra handles error messages by default if
SilenceErrors
is false, butkn
handles errors in main.go and setsSilenceErrors
to true for the root command.By removing the
SilenceErrors
from the root command, there would be no need to print error messages in main.go, and it could be rewrote as follows:Then Cobra would properly attach the error prefix to messages by default for all errors.
Expected behavior
An error prefix should be displayed before error messages.
Steps to reproduce the problem
Produce an error of any kind:
kn version
What's currently in master as of v0.15.1.
The text was updated successfully, but these errors were encountered: