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

View File

@@ -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.