Skip to content
Snippets Groups Projects
Verified Commit 5e20254e authored by Andreas Romeyke's avatar Andreas Romeyke
Browse files

- added check if host is defined

parent ae11c2ed
No related branches found
No related tags found
No related merge requests found
Pipeline #10042 passed
......@@ -19,6 +19,7 @@ our @EXPORT_OK = qw();
#$Search::Elasticsearch::Error::DEBUG=2;
sub _instantiate($protocol, $host, $port) {
die "No host configuration found, missed config-file or command line parameter?\nHint: check '$0' help init'\n" unless defined $host;
return Search::Elasticsearch->new(
nodes => "$protocol://$host:$port",
#trace_to => 'Stderr',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment