Return error on marshaling issues

This commit is contained in:
Juan Font Alonso 2022-09-04 11:36:03 +02:00
parent c1c36036ae
commit f2fda4f906

View File

@ -75,6 +75,8 @@ func (h *Headscale) marshalResponse(
Caller().
Err(err).
Msg("Cannot marshal response")
return nil, err
}
if machineKey.IsZero() { // if Noise