Skip to content

Commit

Permalink
Fix a linter error (bazelbuild#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladmos authored Apr 25, 2018
1 parent 8fe5555 commit 89c2350
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions buildifier/buildifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func main() {
}

if err := diff.Run(); err != nil {
fmt.Fprintf(os.Stderr, "%v\b", err)
fmt.Fprintf(os.Stderr, "%v\n", err)
exitCode = 2
}

Expand Down Expand Up @@ -336,7 +336,7 @@ func processFile(filename string, data []byte, inputType string) {
}
}
if err := diff.Show(infile, outfile); err != nil {
fmt.Fprintf(os.Stderr, "%v", err)
fmt.Fprintf(os.Stderr, "%v\n", err)
exitCode = 4
}

Expand Down
2 changes: 1 addition & 1 deletion differ/diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (d *Differ) run(command string, args ...string) error {
cmd.Stderr = os.Stderr
if err := cmd.Start(); err != nil {
// Couldn't even start bash. Worth reporting.
return fmt.Errorf("buildifier: %s: %v\n", command, err)
return fmt.Errorf("buildifier: %s: %v", command, err)
}

// Assume bash reported anything else worth reporting.
Expand Down

0 comments on commit 89c2350

Please sign in to comment.