Skip to content

Commit

Permalink
more readable hint on subprocess call failure
Browse files Browse the repository at this point in the history
  • Loading branch information
forrestjgq committed Jan 26, 2021
1 parent bab8673 commit 4c138a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gmeter.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func startSubProcess(name string, cmdline string) {
cmd.Stderr = cmd.Stdout

if err = cmd.Start(); err != nil {
panic("start sub process fail: " + cmdline)
glog.Fatalf("start sub process fail: %s, err: %v", cmdline, err)
}

log := &logger{}
Expand Down

0 comments on commit 4c138a4

Please sign in to comment.