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:
parent
8cb1276dbf
commit
81f6b4dcfe
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user