multi: don't pass err.Error() to Fatalf

It resulted in interpreting the error message as a format string.
Use Fatal(err) instead.
This commit is contained in:
Boris Nagaev committed 2025-08-30 14:13:44 -03:00
1 parent 66c7e72c0d
commit 2a599bedc0
4 files changed
+17 -17

No files matched your search

+1 -1
View File
@@ -662,7 +662,7 @@ func TestCoinSelectSubtractFees(t *testing.T) {
if err != nil {
switch {
case test.expectErr == "":
t.Fatalf(err.Error())
t.Fatal(err)
case test.expectErr != removeAmounts(err.Error()):
t.Fatalf("expected error '%v', got '%v'",