We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb57e7b commit 1d65a42Copy full SHA for 1d65a42
cli/root.go
@@ -437,7 +437,9 @@ func FormatCobraError(err error, cmd *cobra.Command) string {
437
_, _ = fmt.Fprintln(&output, httpErr.Friendly())
438
}
439
440
- if cliflag.IsSetBool(cmd, varVerbose) {
+ // If the httpErr is nil then we just have a regular error in which
441
+ // case we want to print out what's happening.
442
+ if httpErr == nil || cliflag.IsSetBool(cmd, varVerbose) {
443
_, _ = fmt.Fprintln(&output, err.Error())
444
445
0 commit comments