fixed sonar bugs

This commit is contained in:
jomu
2015-02-21 15:49:40 +00:00
parent b20d4ffd7a
commit 6a8de77311
2 changed files with 4 additions and 6 deletions

View File

@ -145,7 +145,7 @@ public abstract class FileUtil {
try {
md = MessageDigest.getInstance("MD5");
} catch (NoSuchAlgorithmException ex) {
throw new IOException("Cannot get MD5 MessageDigest instance");
throw new IOException("Cannot get MD5 MessageDigest instance. Reason: "+ex.toString(), ex);
}
try (InputStream is = Files.newInputStream(Paths.get(fileName));