Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Tobler <jtobler@gitlab.com>2022-11-07 20:59:03 +0300
committerJustin Tobler <jtobler@gitlab.com>2022-11-07 20:59:03 +0300
commitecb10851b051b9e0453b51f99c18a7ced160fb44 (patch)
treec7e56da26dbe269a6208a8a9251231ce268eb68a
parentb32121facdc4cdd4939400dafeeb919bb2360004 (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.go2
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