diff options
author | Jon Bratseth <bratseth@oath.com> | 2021-10-06 22:38:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-06 22:38:58 +0200 |
commit | 0500f74df789df2db9fc6624bc51a477eea82686 (patch) | |
tree | c017ace9d77074c60c8d7fd9834f7b7463783b4e | |
parent | ea9739105cef242d35f3717ae80bcc31d68a0af8 (diff) | |
parent | 15561ca4b754bf14c573f91d2fc03a88ee654744 (diff) |
Merge pull request #19443 from vespa-engine/hmusum/add-transaction-info-to-exception
Add transaction info to exception
-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); } } |