Skip to content

Commit 29ac2f8

Browse files
author
Vladimir Kotal
committed
fix message for partial index check
1 parent 25e01cc commit 29ac2f8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/org/opensolaris/opengrok/index/Indexer.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,10 @@ public static void main(String argv[]) {
201201
IndexVersion.check(checkIndexVersionCfg, subFilesList);
202202
} catch (IndexVersionException e) {
203203
System.err.printf("Index version check failed: %s\n", e);
204-
System.err.printf("You might want to remove all data " +
205-
"under the DATA_ROOT and to reindex\n");
204+
System.err.printf("You might want to remove " +
205+
(subFilesList.size() > 0 ?
206+
"data for projects " + String.join(",", subFilesList) : "all data") +
207+
" under the DATA_ROOT and to reindex\n");
206208
status = 1;
207209
System.exit(status);
208210
}

0 commit comments

Comments
 (0)