tools/cmd/toolstash
ardnew fcea13b66c toolstash: errors output should match errors guarded
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: 77a4e86342
GitHub-Pull-Request: golang/tools#489
Reviewed-on: https://go-review.googlesource.com/c/tools/+/580235
Reviewed-by: Joedian Reid <joedian@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Tim King <taking@google.com>
Auto-Submit: Robert Findley <rfindley@google.com>
2024-04-25 20:20:40 +00:00
..
buildall all: replace deprecated egrep with grep -E 2022-09-23 13:31:09 +00:00
cmp.go copyright: test that all files in the repo have copyright notices 2021-01-11 22:19:46 +00:00
main.go toolstash: errors output should match errors guarded 2024-04-25 20:20:40 +00:00