go-perun icon indicating copy to clipboard operation
go-perun copied to clipboard

Client.Handle should return error

Open matthiasgeihs opened this issue 3 years ago • 1 comments

Currently, method Client.Handle does not return an error when there is a connection failure. It only logs the error and returns. We should consider returning the error so that the framework user can act on it.

matthiasgeihs avatar May 14 '21 09:05 matthiasgeihs

So you mean to switch on the error type and then decide?
Because when the client is closed, nextReq returns a context error which should not be returned.

ggwpez avatar May 16 '21 16:05 ggwpez