Skip to content

Commit

Permalink
internal/robustio: fix log.Fatal calls that should be log.Fatalf
Browse files Browse the repository at this point in the history
Change-Id: I810160ebabfdd6062f5cdd902ceda77b5912a6fa
Reviewed-on: https://go-review.googlesource.com/c/tools/+/441876
Reviewed-by: Peter Weinberger <pjw@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Robert Findley <rfindley@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
Auto-Submit: Robert Findley <rfindley@google.com>
  • Loading branch information
findleyr authored and gopherbot committed Oct 10, 2022
1 parent 150b5f8 commit 2a41b25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gopls/internal/robustio/copyfiles.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func main() {

entries, err := os.ReadDir(dir)
if err != nil {
log.Fatal("reading the robustio dir: %v", err)
log.Fatalf("reading the robustio dir: %v", err)
}

// Collect file content so that we can validate before copying.
Expand Down Expand Up @@ -103,7 +103,7 @@ func addPlusBuildConstraints(src []byte) []byte {
if c, err := constraint.Parse(lit); err == nil {
plusBuild, err := constraint.PlusBuildLines(c)
if err != nil {
log.Fatal("computing +build constraint for %q: %v", lit, err)
log.Fatalf("computing +build constraint for %q: %v", lit, err)
}
insertAt := file.Offset(pos) + len(lit)
result = append(result, src[lastInsertion:insertAt]...)
Expand Down

0 comments on commit 2a41b25

Please sign in to comment.