Skip to content

Commit 8426dcf

Browse files
tulinkryVladimir Kotal
authored andcommitted
printing the exception to stderr
1 parent 5f6ae75 commit 8426dcf

File tree

1 file changed

+1
-1
lines changed
  • opengrok-indexer/src/main/java/org/opengrok/indexer/index

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
import java.util.logging.Level;
4848
import java.util.logging.Logger;
4949
import java.util.stream.Collectors;
50-
5150
import org.opengrok.indexer.Info;
5251
import org.opengrok.indexer.analysis.AnalyzerGuru;
5352
import org.opengrok.indexer.analysis.AnalyzerGuruHelp;
@@ -347,6 +346,7 @@ listFiles, createDict, subFiles, new ArrayList(repositories),
347346
System.exit(1);
348347
} catch (IndexerException ex) {
349348
LOGGER.log(Level.SEVERE, "Exception running indexer", ex);
349+
System.err.println("Exception: " + ex.getLocalizedMessage());
350350
System.err.println(optParser.getUsage());
351351
System.exit(1);
352352
} catch (Throwable e) {

0 commit comments

Comments
 (0)