Skip to content

Commit

Permalink
Update internal/cli/cmd/status.go
Browse files Browse the repository at this point in the history
Co-authored-by: Tobias Klauser <[email protected]>
Signed-off-by: Raphaël Pinson <[email protected]>
  • Loading branch information
raphink and tklauser authored Feb 7, 2023
1 parent b27e3d2 commit 658b06d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cli/cmd/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func newCmdStatus() *cobra.Command {
jsonStatus, err := json.MarshalIndent(s, "", " ")
if err != nil {
// Report the most recent status even if an error occurred.
fmt.Errorf(s.Format())
fmt.Print(s.Format())
fatalf("Unable to marshal status to JSON: %s", err)
}
fmt.Println(string(jsonStatus))
Expand Down

0 comments on commit 658b06d

Please sign in to comment.