diff --git a/cvat-core/src/annotations.ts b/cvat-core/src/annotations.ts index d092413ba960..034067993083 100644 --- a/cvat-core/src/annotations.ts +++ b/cvat-core/src/annotations.ts @@ -309,7 +309,7 @@ export function importDataset( '.zip', '.xml', '.json', ]; if (typeof file === 'string' && !(allowedFileExtensions.some((ext) => file.toLowerCase().endsWith(ext)))) { - throw new ArgumentError('File must be file instance with ZIP extension'); + throw new ArgumentError('File must be file instance with eigther ZIP, XML or JSON extension'); } const allowedMimeTypes = [ 'application/zip', 'application/x-zip-compressed', @@ -317,7 +317,7 @@ export function importDataset( 'application/json', ]; if (file instanceof File && !(allowedMimeTypes.includes(file.type))) { - throw new ArgumentError('File must be file instance with ZIP extension'); + throw new ArgumentError('File must be file instance with eigther ZIP, XML or JSON extension'); } if (instance instanceof Project) {