lnwire: update Error() method for FailUnknownPaymentHash to include amt

This commit is contained in:
Olaoluwa Osuntokun 2019-01-28 17:40:33 -08:00
parent 08750f180b
commit c8518140ee
No known key found for this signature in database
GPG Key ID: CE58F7F8E20FD9A2

@ -359,7 +359,7 @@ func (f FailUnknownPaymentHash) Code() FailCode {
// //
// NOTE: Implements the error interface. // NOTE: Implements the error interface.
func (f FailUnknownPaymentHash) Error() string { func (f FailUnknownPaymentHash) Error() string {
return f.Code().String() return fmt.Sprintf("UnknownPaymentHash(amt=%v)", f.amount)
} }
// Decode decodes the failure from bytes stream. // Decode decodes the failure from bytes stream.