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

This commit is contained in:
Olaoluwa Osuntokun committed 2019-01-29 23:03:35 -08:00
1 parent 08750f180b
commit c8518140ee
1 file changed
+1 -1
+1 -1
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.