Merge pull request #3947 from joostjager/missing-result-strings

invoices: add missing String() cases
This commit is contained in:
Joost Jager 2020-01-23 11:47:06 +01:00 committed by GitHub
commit 1851dfdcf7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -128,6 +128,9 @@ func (u ResolutionResult) String() string {
case ResultSettled:
return "settled"
case ResultCanceled:
return "canceled"
case ResultInvoiceNotOpen:
return "invoice no longer open"
@ -137,6 +140,9 @@ func (u ResolutionResult) String() string {
case ResultMppInProgress:
return "mpp reception in progress"
case ResultMppTimeout:
return "mpp timeout"
case ResultAddressMismatch:
return "payment address mismatch"
@ -152,6 +158,9 @@ func (u ResolutionResult) String() string {
case ResultKeySendError:
return "invalid keysend parameters"
case ResultInvoiceNotFound:
return "invoice not found"
default:
return "unknown"
}