Skip to content

Commit

Permalink
Fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
heaths committed May 19, 2022
1 parent 42954d4 commit 9c5bee9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/cmd/api/api.go
Expand Up @@ -314,7 +314,8 @@ func apiRun(opts *ApiOptions) error {
var endCursor string
isJSON, endCursor, serverError, err = processResponse(resp, opts, headersOutputStream, buffer)
if err != nil {
printResponse(buffer, opts, isJSON, serverError != "", opts.IO.Out, &template)
// Print the server error message before exiting
_ = printResponse(buffer, opts, isJSON, serverError != "", opts.IO.Out, &template)
return err
}

Expand Down

0 comments on commit 9c5bee9

Please sign in to comment.