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
@@ -228,7 +228,7 @@ const validateVideoOptions = (videoOptions: ConversionVideoOptions | undefined)
throw new TypeError('options.video.rotate, when provided, must be 0, 90, 180 or 270.');
}
if (videoOptions?.crop !== undefined) {
validateCropRectangle(videoOptions.crop);
validateCropRectangle(videoOptions.crop, 'options.video.');
}
if (
videoOptions?.frameRate !== undefined