Browse Source

Check error of Fprintln

renovate/configure
Yota Toyama 7 years ago
parent
commit
2c45eb1078
  1. 4
      main.go

4
main.go

@ -57,7 +57,9 @@ func main() {
}
func printToStderr(xs ...interface{}) {
fmt.Fprintln(os.Stderr, xs...)
if _, err := fmt.Fprintln(os.Stderr, xs...); err != nil {
panic(err)
}
}
func fail(err error) {

Loading…
Cancel
Save