Skip to content

Commit

Permalink
don't swallow panics
Browse files Browse the repository at this point in the history
  • Loading branch information
georgemalamidis-lh committed Aug 11, 2024
1 parent 6f243e1 commit bdf8557
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import (

func main() {
exitCode := 0
defer os.Exit(exitCode)

paceStr := flag.String("pace", "10s@1", `[duration]@[rate], e.g. "1m@1 30s@1.5 1h@2"`)
silent := flag.Bool("silent", false, "Suppress output")
Expand Down Expand Up @@ -102,4 +101,6 @@ When 0 (default) or negative, reporting is switched off.
panic(err)
}
}

os.Exit(exitCode)
}

0 comments on commit bdf8557

Please sign in to comment.