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:
Andrew Murray 2026-01-26 08:01:02 +11:00 committed by GitHub
parent bc64ccbf28
commit b6178303a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 (