summaryrefslogtreecommitdiff
path: root/transaction_test.go
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <[email protected]>2023-10-11 12:21:35 +0200
committerMarco Trevisan (Treviño) <[email protected]>2023-11-30 01:16:39 +0100
commit71620046687a14acad2ed49317d3003ac1fe84af (patch)
tree6e77e7c26fddd86c1a628e87470ecf140fd08c0c /transaction_test.go
parentadffdfbbdc356d1ff3a8e3b011a085eed0402062 (diff)
transaction: Do not make Transaction to implement error interface anymore
As per previous commit, Transaction can't be used anymore as an error value, but we instead we always return the status code.
Diffstat (limited to 'transaction_test.go')
-rw-r--r--transaction_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/transaction_test.go b/transaction_test.go
index 62b4ce1..0e3a481 100644
--- a/transaction_test.go
+++ b/transaction_test.go
@@ -512,7 +512,7 @@ func Test_Error(t *testing.T) {
if err != nil {
var status Error
if !errors.As(err, &status) || err.Error() != status.Error() {
- t.Fatalf("error #unexpected status %v vs %v", err.Error(),
+ t.Fatalf("error #unexpected status %#v vs %#v", err.Error(),
status.Error())
}
}