Skip to content

Commit d28ff42

Browse files
author
Patrick Thomson
committed
ensure that erroneous output goes to stderr
1 parent 46fdf75 commit d28ff42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

goblin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func Perish(pos token.Position, typ string, reason string) {
3939
"position": DumpPosition(pos),
4040
},
4141
})
42-
os.Stdout.Write(res)
42+
os.Stderr.Write(res)
4343
}
4444
os.Exit(1)
4545
}

0 commit comments

Comments
 (0)