Skip to content

Commit 81f6b4d

Browse files
committed
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.
1 parent 8cb1276 commit 81f6b4d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

invoices/resolution_result.go

+5
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@ const (
107107
ResultMppInProgress
108108
)
109109

110+
// String returns a string representation of the result.
111+
func (f FailResolutionResult) String() string {
112+
return f.FailureString()
113+
}
114+
110115
// FailureString returns a string representation of the result.
111116
//
112117
// Note: it is part of the FailureDetail interface.

0 commit comments

Comments
 (0)