Skip to content

Commit

Permalink
write to stderr instead of panicing, like for other errors
Browse files Browse the repository at this point in the history
  • Loading branch information
turbolent committed Feb 14, 2025
1 parent ca24725 commit 827ac1e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/smoke/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ func main() {
var err error
seed, err = strconv.ParseInt(strings.ReplaceAll(flagSeedHex, "0x", ""), 16, 64)
if err != nil {
panic("Failed to parse seed flag (hex string)")
fmt.Fprintf(os.Stderr, "failed to parse seed flag (hex string) %s: %s", flagSeedHex, err)
return
}
}

Expand Down

0 comments on commit 827ac1e

Please sign in to comment.