Skip to content

Commit

Permalink
fix error handling to exit with code 1
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyBobsin committed Aug 29, 2022
1 parent a5c5a3b commit 47f4102
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/publish.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package cmd

import (
"log"
"os"

"github.com/AnthonyBobsin/latency-lingo-cli/internal"
"github.com/getsentry/sentry-go"
Expand Down Expand Up @@ -38,6 +39,7 @@ var publishCmd = &cobra.Command{
if err != nil {
sentry.CaptureException(err)
log.Printf("Failed to publish: %v", err)
os.Exit(1)
return
}
reportPath = "test-runs/" + runId
Expand Down

0 comments on commit 47f4102

Please sign in to comment.