diff --git a/fb/main.go b/fb/main.go index 613aa8f..3838192 100644 --- a/fb/main.go +++ b/fb/main.go @@ -43,12 +43,13 @@ func Draw(img image.Image) error { for w := 0; w < Width; w++ { _, err := buf.Write(Bytes(img.At(w, h))) if err != nil { - panic(err) + return err } } } err := buf.Flush() if err != nil { - panic(err) + return err } + return nil }