Prefix crop validation error messages

This commit is contained in:
Vanilagy
2025-09-12 16:52:55 +02:00
parent 684b7b7391
commit 3cfb9f27cb
3 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -1126,7 +1126,7 @@ export class CanvasSink {
throw new TypeError('options.rotation, when provided, must be 0, 90, 180 or 270.');
}
if (options.crop !== undefined) {
validateCropRectangle(options.crop);
validateCropRectangle(options.crop, 'options.');
}
if (
options.poolSize !== undefined