mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-27 18:16:18 +02:00
lnwire: update Error() method for FailUnknownPaymentHash to include amt
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user