Add transaction info to exception
-// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.curator.transaction;
import com.yahoo.transaction.AbstractTransaction;
@@ -62,7 +62,7 @@ public class CuratorTransaction extends AbstractTransaction {
}
((CuratorTransactionFinal) transaction).commit();
} catch (Exception e) {
- throw new IllegalStateException(e);
+ throw new IllegalStateException("Failed to commit " + toString(), e);
}
}
