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

This commit is contained in:
Shay Banon 2012-01-24 12:56:47 +02:00
parent 30b8823e3d
commit 7bcee7660a
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ public abstract class TransportMasterNodeOperationAction<Request extends MasterN
@Override @Override
public void onTimeout(TimeValue timeout) { public void onTimeout(TimeValue timeout) {
clusterService.remove(this); clusterService.remove(this);
listener.onFailure(new MasterNotDiscoveredException()); listener.onFailure(new MasterNotDiscoveredException("waited for [" + timeout + "]"));
} }
@Override @Override