Skip to content

Commit

Permalink
Merge pull request #46 from vargusz/bugfix/string-format-ld
Browse files Browse the repository at this point in the history
Fix string format specifier in error message for checkFileSize
  • Loading branch information
JorenSix authored May 31, 2024
2 parents b602429 + 89dbea6 commit e4b0e1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/be/panako/util/FileUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ public static boolean checkFileSize(File file,long maxFileSizeInMB){
if(fileSizeInBytes != 0 && fileSizeInMB < maxFileSizeInMB ){
fileOk = true;
}else{
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 );
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 );
LOG.warning(message);
System.err.println(message);
}
Expand Down

0 comments on commit e4b0e1d

Please sign in to comment.