better failure message when failing to get a node lock

This commit is contained in:
Shay Banon 2011-10-19 23:12:01 +02:00
parent 9396735925
commit 0f2b875df9
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ public class NodeEnvironment extends AbstractComponent {
}
} catch (IOException e) {
logger.trace("failed to obtain node lock on {}", e, dir.getAbsolutePath());
lastException = e;
lastException = new IOException("failed to obtain lock on " + dir.getAbsolutePath(), e);
// release all the ones that were obtained up until now
for (int i = 0; i < locks.length; i++) {
if (locks[i] != null) {