File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
opengrok-indexer/src/main/java/org/opengrok/indexer/web Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -320,7 +320,7 @@ public SearchHelper prepareExec(SortedSet<String> projects) {
320
320
} else {
321
321
errorMsg = "Failed to initialize search. Check the index" ;
322
322
if (projects .size () > 0 ) {
323
- errorMsg = errorMsg + " for projects: " + String .join (", " , projects );
323
+ errorMsg += " for projects: " + String .join (", " , projects );
324
324
}
325
325
return this ;
326
326
}
@@ -348,9 +348,9 @@ public SearchHelper prepareExec(SortedSet<String> projects) {
348
348
} catch (FileNotFoundException e ) {
349
349
errorMsg = "Index database not found. Check the index" ;
350
350
if (projects .size () > 0 ) {
351
- errorMsg = errorMsg + " for projects: " + String .join (", " , projects );
351
+ errorMsg += " for projects: " + String .join (", " , projects );
352
352
}
353
- errorMsg = errorMsg + "; " + e .getMessage ();
353
+ errorMsg += "; " + e .getMessage ();
354
354
} catch (IOException e ) {
355
355
errorMsg = e .getMessage ();
356
356
}
You can’t perform that action at this time.
0 commit comments