mirror of
https://github.com/python-pillow/Pillow.git
synced 2026-01-28 02:55:49 +03:00
Improve error message (#9392)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
This commit is contained in:
parent
bc64ccbf28
commit
b6178303a1
|
|
@ -814,7 +814,7 @@ class PyCodec:
|
|||
self.state.ysize = y1 - y0
|
||||
|
||||
if self.state.xsize <= 0 or self.state.ysize <= 0:
|
||||
msg = "Size cannot be negative"
|
||||
msg = "Size must be positive"
|
||||
raise ValueError(msg)
|
||||
|
||||
if (
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user