diff options
author | Harald Musum <musum@yahooinc.com> | 2021-10-06 22:29:58 +0200 |
---|---|---|
committer | Harald Musum <musum@yahooinc.com> | 2021-10-06 22:29:58 +0200 |
commit | 15561ca4b754bf14c573f91d2fc03a88ee654744 (patch) | |
tree | a4246e021dc5cb67939021d439df692393fd16d5 /zkfacade | |
parent | 717082dcd93b2c158ccb815d19dbd41ded1809c4 (diff) |
Add transaction info to exception
Diffstat (limited to 'zkfacade')
-rw-r--r-- | zkfacade/src/main/java/com/yahoo/vespa/curator/transaction/CuratorTransaction.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zkfacade/src/main/java/com/yahoo/vespa/curator/transaction/CuratorTransaction.java b/zkfacade/src/main/java/com/yahoo/vespa/curator/transaction/CuratorTransaction.java index 92972c99194..4e5b911f66b 100644 --- a/zkfacade/src/main/java/com/yahoo/vespa/curator/transaction/CuratorTransaction.java +++ b/zkfacade/src/main/java/com/yahoo/vespa/curator/transaction/CuratorTransaction.java @@ -1,4 +1,4 @@ -// 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); } } |