diff --git a/cmd/about/about.go b/cmd/about/about.go index 81b7493f1..4b29afa8b 100644 --- a/cmd/about/about.go +++ b/cmd/about/about.go @@ -95,6 +95,9 @@ Use the --json flag for a computer readable output, eg if err != nil { return errors.Wrap(err, "About call failed") } + if u == nil { + return errors.New("nil usage returned") + } if jsonOutput { out := json.NewEncoder(os.Stdout) out.SetIndent("", "\t")