From 1cd3af9de0938e6f37bb97b87daedd927bed388b Mon Sep 17 00:00:00 2001 From: Shay Banon Date: Thu, 8 Dec 2011 17:40:43 +0200 Subject: [PATCH] better exception message --- src/main/java/org/elasticsearch/env/NodeEnvironment.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/elasticsearch/env/NodeEnvironment.java b/src/main/java/org/elasticsearch/env/NodeEnvironment.java index cf29afa36c9..37ae247c372 100644 --- a/src/main/java/org/elasticsearch/env/NodeEnvironment.java +++ b/src/main/java/org/elasticsearch/env/NodeEnvironment.java @@ -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;