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:
4 files changed
+17
-17
No files matched your search
@@ -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'",
|
||||
|
||||
Reference in new issue
Block a user