better failure message when no master found (how long we waited for it)

This commit is contained in:
Shay Banon 2012-01-24 13:07:58 +02:00
parent 7bcee7660a
commit b2aae7f3a0
1 changed files with 4 additions and 0 deletions

View File

@ -31,6 +31,10 @@ public class MasterNotDiscoveredException extends ElasticSearchException {
super("");
}
public MasterNotDiscoveredException(String message) {
super(message);
}
@Override
public RestStatus status() {
return RestStatus.SERVICE_UNAVAILABLE;