invoices: add String() method to failure resolution outcome

In this commit, we add a String() method to the failure resolution
outcome. Without this, logs aren't very useful as the integer version of
the outcome is printed rather than the description.
This commit is contained in:
Olaoluwa Osuntokun 2020-07-12 17:25:53 -07:00
parent 8cb1276dbf
commit 81f6b4dcfe
No known key found for this signature in database
GPG Key ID: BC13F65E2DC84465

View File

@ -107,6 +107,11 @@ const (
ResultMppInProgress
)
// String returns a string representation of the result.
func (f FailResolutionResult) String() string {
return f.FailureString()
}
// FailureString returns a string representation of the result.
//
// Note: it is part of the FailureDetail interface.