log more data
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 1m50s
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 1m50s
This commit is contained in:
@@ -278,10 +278,13 @@ func (r *RemoteHost) ConfirmChange(id CartId, host string) error {
|
|||||||
w.Write([]byte(fmt.Sprintf("%s;%s", id, host)))
|
w.Write([]byte(fmt.Sprintf("%s;%s", id, host)))
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
t, _, err := ReceivePacket(r.connection)
|
t, data, err := ReceivePacket(r.connection)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
if t == AckError {
|
||||||
|
return fmt.Errorf("error from remote: %s, from %s", string(data), r.Host)
|
||||||
|
}
|
||||||
if t != AckChange {
|
if t != AckChange {
|
||||||
return fmt.Errorf("unexpected message type %d", t)
|
return fmt.Errorf("unexpected message type %d", t)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user