Skip to content

Commit

Permalink
Add missing newlines in error messages
Browse files Browse the repository at this point in the history
(Mentioned in #20)
  • Loading branch information
hillu committed Dec 15, 2021
1 parent dfd4d63 commit ad07945
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scanner/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,17 +132,17 @@ func main() {
case ".jar", ".war", ".ear":
f, err := os.Open(path)
if err != nil {
fmt.Fprintf(errFile, "can't open %s: %v", path, err)
fmt.Fprintf(errFile, "can't open %s: %v\n", path, err)
return nil
}
defer f.Close()
sz, err := f.Seek(0, os.SEEK_END)
if err != nil {
fmt.Fprintf(errFile, "can't seek in %s: %v", path, err)
fmt.Fprintf(errFile, "can't seek in %s: %v\n", path, err)
return nil
}
if _, err := f.Seek(0, os.SEEK_END); err != nil {
fmt.Fprintf(errFile, "can't seek in %s: %v", path, err)
fmt.Fprintf(errFile, "can't seek in %s: %v\n", path, err)
return nil
}
handleJar(path, f, sz)
Expand Down

0 comments on commit ad07945

Please sign in to comment.