diff --git a/lib/finch/http_error.ex b/lib/finch/http_error.ex index 6bfe7d9..43df0e3 100644 --- a/lib/finch/http_error.ex +++ b/lib/finch/http_error.ex @@ -8,7 +8,7 @@ defmodule Finch.HTTPError do @type t() :: %__MODULE__{ reason: reason(), module: module() | nil, - source: Mint.HTTPError.t() | nil + source: Exception.t() | nil } defexception [:reason, :module, :source] diff --git a/lib/finch/transport_error.ex b/lib/finch/transport_error.ex index e404100..2a4f440 100644 --- a/lib/finch/transport_error.ex +++ b/lib/finch/transport_error.ex @@ -5,7 +5,7 @@ defmodule Finch.TransportError do @type reason() :: Mint.TransportError.reason() - @type t() :: %__MODULE__{reason: reason(), source: Mint.TransportError.t() | nil} + @type t() :: %__MODULE__{reason: reason(), source: Exception.t() | nil} defexception [:reason, :source]