diff --git a/integration/cli_test.go b/integration/cli_test.go index 04bbb88c039..c921e59303e 100644 --- a/integration/cli_test.go +++ b/integration/cli_test.go @@ -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