lnwire: update Error() method for FailUnknownPaymentHash to include amt
This commit is contained in:
parent
08750f180b
commit
c8518140ee
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user