diff options
author | Justin Tobler <jtobler@gitlab.com> | 2022-11-07 20:59:03 +0300 |
---|---|---|
committer | Justin Tobler <jtobler@gitlab.com> | 2022-11-07 20:59:03 +0300 |
commit | ecb10851b051b9e0453b51f99c18a7ced160fb44 (patch) | |
tree | c7e56da26dbe269a6208a8a9251231ce268eb68a | |
parent | b32121facdc4cdd4939400dafeeb919bb2360004 (diff) |
Praefect: Cancel node voter error message
Currently if `CancelTransactionNodeVoter()` errors the resulting message
is not decorated with relavant context. This change updates the returned
error message to make the surrounding context of the failure more clear.
-rw-r--r-- | internal/praefect/transactions/manager.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/praefect/transactions/manager.go b/internal/praefect/transactions/manager.go index 9231dbd19..3405ffbf9 100644 --- a/internal/praefect/transactions/manager.go +++ b/internal/praefect/transactions/manager.go @@ -244,7 +244,7 @@ func (mgr *Manager) CancelTransactionNodeVoter(transactionID uint64, node string } if err := transaction.cancelNodeVoter(node); err != nil { - return err + return fmt.Errorf("canceling transaction node voter: %w", err) } return nil |