From c8518140ee1bd3237d5659c41d8e4abf8fdd01f8 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Mon, 28 Jan 2019 17:40:33 -0800 Subject: [PATCH] lnwire: update Error() method for FailUnknownPaymentHash to include amt --- lnwire/onion_error.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnwire/onion_error.go b/lnwire/onion_error.go index 10885782..f6719ea7 100644 --- a/lnwire/onion_error.go +++ b/lnwire/onion_error.go @@ -359,7 +359,7 @@ func (f FailUnknownPaymentHash) Code() FailCode { // // NOTE: Implements the error interface. func (f FailUnknownPaymentHash) Error() string { - return f.Code().String() + return fmt.Sprintf("UnknownPaymentHash(amt=%v)", f.amount) } // Decode decodes the failure from bytes stream.