mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-09-26 03:29:00 +02:00
Fix Invalid zoom value error message
for the second argument
This commit is contained in:
@@ -410,7 +410,7 @@ func applyZoomOption(po *ProcessingOptions, args []string) error {
|
||||
if z, err := strconv.ParseFloat(args[1], 64); err == nil && z > 0 {
|
||||
po.ZoomHeight = z
|
||||
} else {
|
||||
return newOptionArgumentError("Invalid zoom value: %s", args[0])
|
||||
return newOptionArgumentError("Invalid zoom value: %s", args[1])
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user