Skip to content

Commit dcc177a

Browse files
Update packages/common/pipes/file/file-type.validator.ts
1 parent e019da8 commit dcc177a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/common/pipes/file/file-type.validator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class FileTypeValidator extends FileValidator<
2727
> {
2828
buildErrorMessage(file?: IFile): string {
2929
if (file?.mimetype) {
30-
return `Validation failed (detected file type is ${file.mimetype}, expected type is ${this.validationOptions.fileType})`;
30+
return `Validation failed (current file type is ${file.mimetype}, expected type is ${this.validationOptions.fileType})`;
3131
}
3232
return `Validation failed (expected type is ${this.validationOptions.fileType})`;
3333
}

0 commit comments

Comments
 (0)