cmd/strelaypoolsrv: Expose check error to client, fix incorrect response code handling

This commit is contained in:
Jakob Borg
2020-04-04 13:31:42 +02:00
parent 66262392c3
commit 362da59396
4 changed files with 25 additions and 16 deletions
+1 -1
View File
@@ -201,7 +201,7 @@ func (c *staticClient) join() error {
switch msg := message.(type) {
case protocol.Response:
if msg.Code != 0 {
return fmt.Errorf("incorrect response code %d: %s", msg.Code, msg.Message)
return incorrectResponseCodeErr{msg.Code, msg.Message}
}
case protocol.RelayFull: