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.
This commit is contained in:
Marco Trevisan (Treviño)
2023-10-11 12:21:35 +02:00
parent adffdfbbdc
commit 7162004668
2 changed files with 1 additions and 7 deletions

View File

@@ -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())
}
}