Skip to content

Commit 878a432

Browse files
tulinkryVladimir Kotal
authored andcommitted
report a simple message when the historycache does not exist
1 parent c1e38f7 commit 878a432

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/history/FileHistoryCache.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
import java.io.BufferedWriter;
3636
import java.io.File;
3737
import java.io.FileInputStream;
38+
import java.io.FileNotFoundException;
3839
import java.io.FileOutputStream;
3940
import java.io.FileReader;
4041
import java.io.IOException;
@@ -789,6 +790,8 @@ public void clear(Repository repository) {
789790
// Remove all files which constitute the history cache.
790791
try {
791792
IOUtils.removeRecursive(Paths.get(histDir));
793+
} catch (FileNotFoundException ex) {
794+
LOGGER.log(Level.WARNING, "directory {} does not exist", histDir);
792795
} catch (IOException ex) {
793796
LOGGER.log(Level.SEVERE, "tried removeRecursive()", ex);
794797
}

0 commit comments

Comments
 (0)