cmd/trace: Fix nil pointer panic in trace subcommand
This commit is contained in:
parent
1aa83e30e0
commit
6d68d1aefa
@ -186,6 +186,9 @@ starts and attaches to it, and enables you to immediately begin debugging your p
|
||||
for {
|
||||
select {
|
||||
case state := <-stateChan:
|
||||
if state == nil {
|
||||
return 0
|
||||
}
|
||||
if state.Err != nil {
|
||||
fmt.Fprintln(os.Stderr, state.Err)
|
||||
return 0
|
||||
|
||||
Loading…
Reference in New Issue
Block a user