Skip to content

Commit

Permalink
Report status even if an error occurs
Browse files Browse the repository at this point in the history
Signed-off-by: Raphaël Pinson <[email protected]>
  • Loading branch information
raphink committed Jan 13, 2023
1 parent e4975a3 commit 9c27b5c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/cli/cmd/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ func newCmdStatus() *cobra.Command {
if params.Output == "json" {
jsonStatus, err := json.MarshalIndent(s, "", " ")
if err != nil {
fmt.Print(s.Format())
fatalf("Unable to marshal status to JSON: %s", err)
}
fmt.Println(string(jsonStatus))
Expand Down

0 comments on commit 9c27b5c

Please sign in to comment.