mirror of https://github.com/k3s-io/k3s
Fix nil panic propagation
parent
ef70b1159d
commit
b8c64e30d1
|
@ -190,9 +190,9 @@ func finishRequest(timeout time.Duration, fn resultFunc) (result runtime.Object,
|
|||
buf := make([]byte, size)
|
||||
buf = buf[:goruntime.Stack(buf, false)]
|
||||
panicReason = strings.TrimSuffix(fmt.Sprintf("%v\n%s", panicReason, string(buf)), "\n")
|
||||
// Propagate to parent goroutine
|
||||
panicCh <- panicReason
|
||||
}
|
||||
// Propagate to parent goroutine
|
||||
panicCh <- panicReason
|
||||
}()
|
||||
|
||||
if result, err := fn(); err != nil {
|
||||
|
|
Loading…
Reference in New Issue