Skip to content

Commit

Permalink
ensure that erroneous output goes to stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Thomson committed Jun 30, 2017
1 parent 46fdf75 commit d28ff42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion goblin.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func Perish(pos token.Position, typ string, reason string) {
"position": DumpPosition(pos),
},
})
os.Stdout.Write(res)
os.Stderr.Write(res)
}
os.Exit(1)
}
Expand Down

0 comments on commit d28ff42

Please sign in to comment.