Merge pull request #3947 from joostjager/missing-result-strings
invoices: add missing String() cases
This commit is contained in:
commit
1851dfdcf7
@ -128,6 +128,9 @@ func (u ResolutionResult) String() string {
|
|||||||
case ResultSettled:
|
case ResultSettled:
|
||||||
return "settled"
|
return "settled"
|
||||||
|
|
||||||
|
case ResultCanceled:
|
||||||
|
return "canceled"
|
||||||
|
|
||||||
case ResultInvoiceNotOpen:
|
case ResultInvoiceNotOpen:
|
||||||
return "invoice no longer open"
|
return "invoice no longer open"
|
||||||
|
|
||||||
@ -137,6 +140,9 @@ func (u ResolutionResult) String() string {
|
|||||||
case ResultMppInProgress:
|
case ResultMppInProgress:
|
||||||
return "mpp reception in progress"
|
return "mpp reception in progress"
|
||||||
|
|
||||||
|
case ResultMppTimeout:
|
||||||
|
return "mpp timeout"
|
||||||
|
|
||||||
case ResultAddressMismatch:
|
case ResultAddressMismatch:
|
||||||
return "payment address mismatch"
|
return "payment address mismatch"
|
||||||
|
|
||||||
@ -152,6 +158,9 @@ func (u ResolutionResult) String() string {
|
|||||||
case ResultKeySendError:
|
case ResultKeySendError:
|
||||||
return "invalid keysend parameters"
|
return "invalid keysend parameters"
|
||||||
|
|
||||||
|
case ResultInvoiceNotFound:
|
||||||
|
return "invoice not found"
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return "unknown"
|
return "unknown"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user