Merge pull request #72856 from liggitt/nil-panic-propagation

Fix nil panic propagation
pull/564/head
Kubernetes Prow Robot 2019-01-12 09:27:43 -08:00 committed by GitHub
commit d1e5311922
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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 {