Skip to content

Commit

Permalink
Slightly better error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikhil Narula committed Feb 22, 2017
1 parent 8421494 commit f15442a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ func main() {
for scanner.Scan() {
files = append(files, scanner.Text())
}
if err := scanner.Err(); err != nil {
fmt.Errorf("Error reading test files: %v", err)
os.Exit(1)
}
} else {
for _, val := range flag.Args() {
files = append(files, val)
Expand Down

0 comments on commit f15442a

Please sign in to comment.