   end
 
   defp add_headers({:error, _, _} = result, headers) do
-    {[result], headers}
-  end
-
-  defp add_headers({:error, _, _, _} = result, headers) do
     {[result], headers}
   end
 

    {:ok, row_with_headers}
  end

  defp build_row_with_headers(data, _), do: {:ok, data}

  defp with_headers(stream, options) do
    headers = options |> Keyword.get(:headers, false)


    |> Keyword.merge(headers: options |> Keyword.get(:headers, false))
  end

  defp build_row_with_headers(data, headers) do
    row_with_headers =
      headers
      |> Enum.zip(data)
