Skip to content

Commit b617830

Browse files
radarherehugovk
andauthored
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>
1 parent bc64ccb commit b617830

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PIL/ImageFile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ def setimage(
814814
self.state.ysize = y1 - y0
815815

816816
if self.state.xsize <= 0 or self.state.ysize <= 0:
817-
msg = "Size cannot be negative"
817+
msg = "Size must be positive"
818818
raise ValueError(msg)
819819

820820
if (

0 commit comments

Comments
 (0)