Skip to content
Snippets Groups Projects
Commit bd7d2440 authored by Thomas Schneider's avatar Thomas Schneider
Browse files

DeployZone: more debugging as well

parent 47ea0daa
No related branches found
No related tags found
No related merge requests found
Pipeline #4172 failed
...@@ -141,9 +141,17 @@ func (c *Client) DeployZone(zone int) (Zone, error) { ...@@ -141,9 +141,17 @@ func (c *Client) DeployZone(zone int) (Zone, error) {
return Zone{}, err return Zone{}, err
} }
dec := json.NewDecoder(res.Body) b, err := io.ReadAll(res.Body)
if err != nil {
return Zone{}, err
}
bs := string(b)
dec := json.NewDecoder(strings.NewReader(bs))
var z Zone var z Zone
err = dec.Decode(&z) err = dec.Decode(&z)
if err != nil {
err = fmt.Errorf("Decode: %w (%s)", err, bs)
return z, err return z, err
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment