channeldb: make FailureReason Error()

This commit is contained in:
Johan T. Halseth 2020-04-01 00:13:24 +02:00
parent e1f4d89ad9
commit 9bcf41d401
No known key found for this signature in database
GPG Key ID: 15BAADA29DA20D26

@ -123,7 +123,12 @@ const (
// LocalLiquidityInsufficient, RemoteCapacityInsufficient.
)
// String returns a human readable FailureReason
// Error returns a human readable error string for the FailureReason.
func (r FailureReason) Error() string {
return r.String()
}
// String returns a human readable FailureReason.
func (r FailureReason) String() string {
switch r {
case FailureReasonTimeout: