-
Notifications
You must be signed in to change notification settings - Fork 18k
runtime: add missing runtime error prefix to PanicNilError #63816
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Errors that implement runtime.Error should have a "runtime error: " prefix, with the solo exception of runtime.plainError (on purpose). Calling panic(nil) results in a PanicNilError that violates this constraint. This CL changes the error from panic(nil) from: panic called with nil argument to runtime error: panic called with nil argument Fixes golang#63813
This PR (HEAD: 2ef7eef) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/538496. Important tips:
|
Change-Id: I3c774330903fb7f8fb768b106b8a5226f6053812
This PR (HEAD: d04cb4b) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/538496. Important tips:
|
Message from Keith Randall: Patch Set 2: Auto-Submit+1 Code-Review+2 Commit-Queue+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/538496. |
Message from Go LUCI: Patch Set 2: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2023-12-13T22:13:09Z","revision":"a40b1a016700068d602897e4993a53aad247f996"} Please don’t reply on this GitHub thread. Visit golang.org/cl/538496. |
Message from Keith Randall: Patch Set 2: Code-Review+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/538496. |
Message from Keith Randall: Patch Set 2: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/538496. |
Message from Go LUCI: Patch Set 2: This CL has failed the run. Reason: Tryjob golang/try/gotip-linux-arm64 has failed with summary (view all results): FAILURE
error: shard 2: failed to run "go tool dist test -json": exit status 1 Please don’t reply on this GitHub thread. Visit golang.org/cl/538496. |
Message from Go LUCI: Patch Set 2: LUCI-TryBot-Result-1 Please don’t reply on this GitHub thread. Visit golang.org/cl/538496. |
This PR (HEAD: 6973878) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/538496. Important tips:
|
Message from Keith Randall: Patch Set 3: Code-Review+2 Commit-Queue+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/538496. |
Message from Go LUCI: Patch Set 3: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2024-04-24T15:45:13Z","revision":"77953e4f55addb71f289773ed31ce51311456759"} Please don’t reply on this GitHub thread. Visit golang.org/cl/538496. |
Message from Joedian Reid: Patch Set 3: Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/538496. |
Message from Gopher Robot: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/538496. |
Message from Keith Randall: Patch Set 3: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/538496. |
Message from Go LUCI: Patch Set 3: This CL has failed the run. Reason: Tryjob golang/try/gotip-linux-amd64 has failed with summary (view all results): FAILURE
Tests failed. See all test results. Error: Links: Please don’t reply on this GitHub thread. Visit golang.org/cl/538496. |
Message from Go LUCI: Patch Set 3: LUCI-TryBot-Result-1 Please don’t reply on this GitHub thread. Visit golang.org/cl/538496. |
Message from Gopher Robot: Patch Set 3: TryBot-Result+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/538496. |
Message from Dmitri Shuralyov: Patch Set 3: Hold+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/538496. |
Message from Dmitri Shuralyov: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/538496. |
Message from Emmanuel Odeke: Patch Set 3: Code-Review+2 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/538496. |
Change-Id: I7f68ca0b0d92855da5b2a1185ee66ed76024593a
This PR (HEAD: 487a31f) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/538496. Important tips:
|
Errors that implement runtime.Error should have a
"runtime error: " prefix, with the solo exception of
runtime.plainError (on purpose).
Calling panic(nil) results in a PanicNilError that
violates this constraint by not including a prefix.
Fixes #63813