Skip to content

Commit

Permalink
Merge pull request #174 from tiagoefmoraes/remove_mix_docs_warnings
Browse files Browse the repository at this point in the history
remove warnings from mix docs
  • Loading branch information
yordis authored Jan 29, 2023
2 parents c4dede7 + d26cd3b commit 2ab16c5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/oauth2/error.ex
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 2ab16c5

Please sign in to comment.