diff options
author | Ian Bull <irbull@gmail.com> | 2024-09-04 00:23:19 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-04 09:23:19 +0200 |
commit | cb454351d497a4387775f3c9d64114cb8b32c08d (patch) | |
tree | 252e1dc84de3d3048ae3d98f4713cbdb436c5226 /ext/canvas | |
parent | 1ec911f1734b5e7190cc65876c5f03011e592d7e (diff) |
refactor(ext): align error messages (#25310)
Diffstat (limited to 'ext/canvas')
-rw-r--r-- | ext/canvas/01_image.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/canvas/01_image.js b/ext/canvas/01_image.js index 6fb1ee62f..3ea72db6a 100644 --- a/ext/canvas/01_image.js +++ b/ext/canvas/01_image.js @@ -307,7 +307,9 @@ function processImage(input, width, height, sx, sy, sw, sh, options) { } if (options.colorSpaceConversion === "none") { - throw new TypeError("options.colorSpaceConversion 'none' is not supported"); + throw new TypeError( + "Cannot create image: invalid colorSpaceConversion option, 'none' is not supported", + ); } /* |