-
Notifications
You must be signed in to change notification settings - Fork 2.3k
toolstash: errors output should match errors guarded #489
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
Conversation
This PR (HEAD: 77a4e86) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/tools/+/580235. Important tips:
|
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/580235. |
Message from Tim King: Patch Set 1: Commit-Queue+1 (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/580235. |
Message from Go LUCI: Patch Set 1: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2024-04-19T20:56:39Z","revision":"9bd12efce3a3acf2a3c6b360dca6303bed136324"} Please don’t reply on this GitHub thread. Visit golang.org/cl/580235. |
Message from Tim King: Patch Set 1: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/580235. |
Message from Go LUCI: Patch Set 1: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/580235. |
Message from Go LUCI: Patch Set 1: LUCI-TryBot-Result+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/580235. |
Message from ardnew: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/580235. |
Message from Tim King: Patch Set 2: Commit-Queue+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/580235. |
Message from Go LUCI: Patch Set 2: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2024-04-24T19:24:23Z","revision":"cdb1ef30de1b61e061e8f5c74e906d55b06fcce7"} Please don’t reply on this GitHub thread. Visit golang.org/cl/580235. |
Message from Tim King: Patch Set 2: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/580235. |
Message from Go LUCI: Patch Set 2: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/580235. |
Message from Go LUCI: Patch Set 2: LUCI-TryBot-Result+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/580235. |
Message from Tim King: Patch Set 2: Code-Review+2 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/580235. |
Message from Joedian Reid: Patch Set 2: Code-Review+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/580235. |
The errors guarded against in the `if` conditions are not the errors printed with`log.Fatalf()` — instead, they are the same errors copied from the immediately-preceding error checks. Maybe some sort of copy-paste mistake. Reasoning: - The error printed is always `nil` at the changed lines (`err1`). - The error printed should be a non-`nil` error (`err2`). Change-Id: I5e4c1e6a460fb37d9d8652b727e641db2245e3c5 GitHub-Last-Rev: 77a4e86 GitHub-Pull-Request: #489 Reviewed-on: https://go-review.googlesource.com/c/tools/+/580235 Reviewed-by: Joedian Reid <[email protected]> Reviewed-by: Robert Findley <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Tim King <[email protected]> Auto-Submit: Robert Findley <[email protected]>
This PR is being closed because golang.org/cl/580235 has been merged. |
The errors guarded against in the
if
conditions are not the errorsprinted with
log.Fatalf()
— instead, they are the same errors copiedfrom the immediately-preceding error checks.
Maybe some sort of copy-paste mistake.
Reasoning:
nil
at the changed lines (err1
).nil
error (err2
).