Skip to content

Commit

Permalink
fix error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Pennebaker committed Jan 16, 2024
1 parent ac55162 commit 1b85fb9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/tug/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ func main() {
job.Directory = args[0]
}

if err2 := job.Run(); err != nil {
panic(err2)
if err2 := job.Run(); err2 != nil {
fmt.Println(err2)
os.Exit(1)
}
}

0 comments on commit 1b85fb9

Please sign in to comment.