         nil
     end
   end
+
+  defp serialize_report_value(value) when is_binary(value), do: (value)
+  defp serialize_report_value(value), do: inspect(value)
 end

  defp merge_report(report, %{}), do: report

  defp abort_installation(reason, report) do
    report = merge_report(report, %{result: %{status: :failed, message: reason}})
    write_report(report)
    Mix.Shell.IO.error("AppSignal installation failed: #{reason}")
  end

  defp priv_dir do

      System.cmd(make(), make_args(to_string(Mix.env())), [stderr_to_stdout: true])
    rescue
      reason ->
        {serialize_report_value(reason), 1}
    end
  end

