Skip to content

Commit c9b4f27

Browse files
committed
add quotes around paths
1 parent 5a4c17a commit c9b4f27

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/index/IndexDatabase.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1784,7 +1784,7 @@ private void indexParallel(String dir, IndexDownArgs args) {
17841784
}
17851785
} catch (AlreadyClosedException e) {
17861786
alreadyClosedCounter.incrementAndGet();
1787-
String errmsg = String.format("ERROR addFile(): %s", x.file);
1787+
String errmsg = String.format("ERROR addFile(): '%s'", x.file);
17881788
LOGGER.log(Level.SEVERE, errmsg, e);
17891789
x.exception = e;
17901790
ret = false;
@@ -1793,11 +1793,11 @@ private void indexParallel(String dir, IndexDownArgs args) {
17931793
if (++tries <= 1) {
17941794
continue;
17951795
}
1796-
LOGGER.log(Level.WARNING, "No retry: {0}", x.file);
1796+
LOGGER.log(Level.WARNING, "No retry: ''{0}''", x.file);
17971797
x.exception = e;
17981798
ret = false;
17991799
} catch (RuntimeException | IOException e) {
1800-
String errmsg = String.format("ERROR addFile(): %s", x.file);
1800+
String errmsg = String.format("ERROR addFile(): '%s'", x.file);
18011801
LOGGER.log(Level.WARNING, errmsg, e);
18021802
x.exception = e;
18031803
ret = false;

0 commit comments

Comments
 (0)