Skip to content

Commit ce40837

Browse files
committed
Fixed typo in the error exception
1 parent 1ae8494 commit ce40837

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dspace-api/src/main/java/org/dspace/content/PreviewContentServiceImpl.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ public List<FileInfo> processInputStreamToFilePreview(Context context, Bitstream
198198
String bitstreamMimeType = bitstream.getFormat(context).getMIMEType();
199199
if (bitstreamMimeType.equals("text/plain")) {
200200
if (!validateBitstreamNameWithType(bitstream, "zip,tar,gz,tar.gz,tar.bz2")) {
201-
throw new IOException("he file has an incorrect type according to the MIME type stored in the " +
201+
throw new IOException("The file has an incorrect type according to the MIME type stored in the " +
202202
"database. This could cause the ZIP file to be previewed as a text file, potentially leading" +
203203
" to a database error.");
204204
}

0 commit comments

Comments
 (0)