mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 03:11:40 +00:00
Merge pull request #72856 from liggitt/nil-panic-propagation
Fix nil panic propagation
This commit is contained in:
commit
d1e5311922
@ -190,9 +190,9 @@ func finishRequest(timeout time.Duration, fn resultFunc) (result runtime.Object,
|
|||||||
buf := make([]byte, size)
|
buf := make([]byte, size)
|
||||||
buf = buf[:goruntime.Stack(buf, false)]
|
buf = buf[:goruntime.Stack(buf, false)]
|
||||||
panicReason = strings.TrimSuffix(fmt.Sprintf("%v\n%s", panicReason, string(buf)), "\n")
|
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 {
|
if result, err := fn(); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user