mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-10-02 17:09:48 +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 {
|
if z, err := strconv.ParseFloat(args[1], 64); err == nil && z > 0 {
|
||||||
po.ZoomHeight = z
|
po.ZoomHeight = z
|
||||||
} else {
|
} else {
|
||||||
return newOptionArgumentError("Invalid zoom value: %s", args[0])
|
return newOptionArgumentError("Invalid zoom value: %s", args[1])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user