Skip to content

Commit e4b0e1d

Browse files
authored
Merge pull request #46 from vargusz/bugfix/string-format-ld
Fix string format specifier in error message for checkFileSize
2 parents b602429 + 89dbea6 commit e4b0e1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/be/panako/util/FileUtils.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ public static boolean checkFileSize(File file,long maxFileSizeInMB){
525525
if(fileSizeInBytes != 0 && fileSizeInMB < maxFileSizeInMB ){
526526
fileOk = true;
527527
}else{
528-
String message = String.format("Could not process %s it has an unacceptable file size of %l MB (zero or larger than %d MB ).", file.getName(), fileSizeInMB, maxFileSizeInMB );
528+
String message = String.format("Could not process %s it has an unacceptable file size of %d MB (zero or larger than %d MB ).", file.getName(), fileSizeInMB, maxFileSizeInMB );
529529
LOG.warning(message);
530530
System.err.println(message);
531531
}

0 commit comments

Comments
 (0)