diff --git a/lib/oauth2/error.ex b/lib/oauth2/error.ex index 8ad15dd..ab692ab 100644 --- a/lib/oauth2/error.ex +++ b/lib/oauth2/error.ex @@ -1,12 +1,11 @@ defmodule OAuth2.Error do - @moduledoc false - @type t :: %__MODULE__{ reason: binary } defexception [:reason] + @doc false def message(%__MODULE__{reason: :econnrefused}), do: "Connection refused" def message(%__MODULE__{reason: reason}) when is_binary(reason), do: reason def message(%__MODULE__{reason: reason}), do: inspect(reason)