We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1e38f7 commit 878a432Copy full SHA for 878a432
opengrok-indexer/src/main/java/org/opengrok/indexer/history/FileHistoryCache.java
@@ -35,6 +35,7 @@
35
import java.io.BufferedWriter;
36
import java.io.File;
37
import java.io.FileInputStream;
38
+import java.io.FileNotFoundException;
39
import java.io.FileOutputStream;
40
import java.io.FileReader;
41
import java.io.IOException;
@@ -789,6 +790,8 @@ public void clear(Repository repository) {
789
790
// Remove all files which constitute the history cache.
791
try {
792
IOUtils.removeRecursive(Paths.get(histDir));
793
+ } catch (FileNotFoundException ex) {
794
+ LOGGER.log(Level.WARNING, "directory {} does not exist", histDir);
795
} catch (IOException ex) {
796
LOGGER.log(Level.SEVERE, "tried removeRecursive()", ex);
797
}
0 commit comments