better exception message

This commit is contained in:
Shay Banon 2011-12-08 17:40:43 +02:00
parent 1fd5a48409
commit 1cd3af9de0
1 changed files with 2 additions and 1 deletions

View File

@ -33,6 +33,7 @@ import org.elasticsearch.index.shard.ShardId;
import java.io.File;
import java.io.IOException;
import java.util.Arrays;
/**
*
@ -116,7 +117,7 @@ public class NodeEnvironment extends AbstractComponent {
}
}
if (locks[0] == null) {
throw new IOException("Failed to obtain node lock", lastException);
throw new IOException("Failed to obtain node lock on " + Arrays.toString(environment.dataWithClusterFiles()), lastException);
}
this.localNodeId = localNodeId;