log more data
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 1m50s

This commit is contained in:
matst80
2024-11-09 19:41:33 +01:00
parent 4c5c66e7ed
commit 9e6c0a4b92

View File

@@ -278,10 +278,13 @@ func (r *RemoteHost) ConfirmChange(id CartId, host string) error {
w.Write([]byte(fmt.Sprintf("%s;%s", id, host)))
return nil
})
t, _, err := ReceivePacket(r.connection)
t, data, err := ReceivePacket(r.connection)
if err != nil {
return err
}
if t == AckError {
return fmt.Errorf("error from remote: %s, from %s", string(data), r.Host)
}
if t != AckChange {
return fmt.Errorf("unexpected message type %d", t)
}