File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
src/main/java/pl/allegro/tech/search/elasticsearch/tools/reindex Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,10 @@ public boolean tryParse(String... args) {
2525 buildReindexParameters (command );
2626
2727 } catch (ParameterException | ParsingElasticsearchAddressException exception ) {
28+ JCommander .getConsole ().println ("Parameters error occurred:" );
29+ JCommander .getConsole ().println (exception .getMessage ());
30+ JCommander .getConsole ().println ("" );
31+
2832 jCommander .usage ();
2933 return false ;
3034 }
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ public ElasticAddress parse(String uri) {
1717 elasticAddress .setTypeName (matcher .group (4 ));
1818 return elasticAddress ;
1919 } else {
20- throw new ParsingElasticsearchAddressException ("Could not parse ELS address: " + uri );
20+ throw new ParsingElasticsearchAddressException ("Could not parse elasticsearch url: " + uri );
2121 }
2222 }
2323}
You can’t perform that action at this time.
0 commit comments