Skip to content

Commit 505f430

Browse files
committed
quote paths
1 parent 42e5204 commit 505f430

File tree

1 file changed

+3
-3
lines changed
  • opengrok-indexer/src/main/java/org/opengrok/indexer/history

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
/*
21-
* Copyright (c) 2021, 2023, Oracle and/or its affiliates. All rights reserved.
21+
* Copyright (c) 2021, 2024, Oracle and/or its affiliates. All rights reserved.
2222
*/
2323
package org.opengrok.indexer.history;
2424

@@ -65,7 +65,7 @@ public static String getRepositoryCacheDataDirname(RepositoryInfo repository, Ca
6565
repoDirBasename = env.getPathRelativeToSourceRoot(new File(repository.getDirectoryName()));
6666
} catch (IOException ex) {
6767
LOGGER.log(Level.WARNING,
68-
String.format("Could not resolve repository %s relative to source root", repository), ex);
68+
String.format("Could not resolve repository '%s' relative to source root", repository), ex);
6969
return null;
7070
} catch (ForbiddenSymlinkException ex) {
7171
LOGGER.log(Level.FINER, ex.getMessage());
@@ -84,7 +84,7 @@ public static void clearCacheDir(RepositoryInfo repository, Cache cache) {
8484
try {
8585
IOUtils.removeRecursive(Paths.get(histDir));
8686
} catch (NoSuchFileException ex) {
87-
LOGGER.log(Level.WARNING, String.format("directory %s does not exist", histDir));
87+
LOGGER.log(Level.WARNING, String.format("directory '%s' does not exist", histDir));
8888
} catch (IOException ex) {
8989
LOGGER.log(Level.SEVERE, "tried removeRecursive()", ex);
9090
}

0 commit comments

Comments
 (0)