Skip to content

Commit

Permalink
fix: forge ping returns an exit code when ping fails (#449)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeisss authored Jun 3, 2024
1 parent 67d876b commit 10967ff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/ping.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ func runPingCmd(cmd *cobra.Command, args []string) {
Subject: user,
}
printPingCommandResult(os.Stdout, result)
if !result.Success {
os.Exit(1)
}
}

func PrintHumanPingResult(w io.Writer, result PingCommandResult) {
Expand Down

0 comments on commit 10967ff

Please sign in to comment.