Skip to content

Commit

Permalink
integration: return cli err when unmarshal fails
Browse files Browse the repository at this point in the history
Signed-off-by: Kristoffer Dalby <[email protected]>
  • Loading branch information
kradalby committed Oct 9, 2023
1 parent 294455b commit c18e47c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integration/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func executeAndUnmarshal[T any](headscale ControlServer, command []string, resul

err = json.Unmarshal([]byte(str), result)
if err != nil {
return err
return fmt.Errorf("failed to unmarshal: %s\n command err: %s", err, str)
}

return nil
Expand Down

0 comments on commit c18e47c

Please sign in to comment.