Not logging invalidpathException

This commit is contained in:
Sidhesh Mhatre 2015-06-24 16:19:16 -04:00
parent 9b021d5adb
commit 10f66173a0

View File

@ -1170,8 +1170,7 @@ public class Case implements SleuthkitCase.ErrorObserver {
normalizedLocalPath = Paths.get(localPath).normalize().toString();
} catch (InvalidPathException ex) {
String errorMsg = "Invalid local path provided: " + localPath; // NON-NLS
logger.log(Level.WARNING, errorMsg, ex);
throw new TskCoreException(errorMsg);
throw new TskCoreException(errorMsg, ex);
}
Report report = this.db.addReport(normalizedLocalPath, srcModuleName, reportName);
try {