1
0
mirror of https://github.com/coalaura/ffwebp.git synced 2025-07-17 22:04:35 +00:00
This commit is contained in:
Laura
2025-06-19 17:42:48 +02:00
parent 3f32af7028
commit 9321134e9d
3 changed files with 2 additions and 3 deletions

View File

@ -75,7 +75,6 @@ func main() {
if err := app.Run(context.Background(), os.Args); err != nil { if err := app.Run(context.Background(), os.Args); err != nil {
logx.Errorf("fatal: %v", err) logx.Errorf("fatal: %v", err)
os.Exit(1)
} }
} }

View File

@ -39,7 +39,7 @@ func (impl) Flags(flags []cli.Flag) []cli.Flag {
Destination: &compression, Destination: &compression,
Validator: func(value int) error { Validator: func(value int) error {
if value < 0 || value > 3 { if value < 0 || value > 3 {
return fmt.Errorf("invalid compression level: %q", value) return fmt.Errorf("invalid compression level: %d", value)
} }
return nil return nil