From d26cd3b8dd20bf8b58eda3751e2b1c61f319390a Mon Sep 17 00:00:00 2001 From: Tiago Moraes Date: Fri, 20 Jan 2023 18:29:24 -0300 Subject: [PATCH] remove warnings from mix docs --- lib/oauth2/error.ex | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)