diff --git a/cmd/ffwebp/main.go b/cmd/ffwebp/main.go index 1f52294..bb7beae 100644 --- a/cmd/ffwebp/main.go +++ b/cmd/ffwebp/main.go @@ -75,7 +75,6 @@ func main() { if err := app.Run(context.Background(), os.Args); err != nil { logx.Errorf("fatal: %v", err) - os.Exit(1) } } diff --git a/internal/codec/png/png.go b/internal/codec/png/png.go index cfc8ff8..c2d69fa 100644 --- a/internal/codec/png/png.go +++ b/internal/codec/png/png.go @@ -39,7 +39,7 @@ func (impl) Flags(flags []cli.Flag) []cli.Flag { Destination: &compression, Validator: func(value int) error { if value < 0 || value > 3 { - return fmt.Errorf("invalid compression level: %q", value) + return fmt.Errorf("invalid compression level: %d", value) } return nil diff --git a/run.cmd b/run.cmd index 361b1da..11137b2 100644 --- a/run.cmd +++ b/run.cmd @@ -3,4 +3,4 @@ echo Rebuilding... go build -tags full -o ffwebp.exe .\cmd\ffwebp -.\ffwebp.exe %* \ No newline at end of file +.\ffwebp.exe %*