Skip to content

Commit

Permalink
remove warnings from mix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagoefmoraes committed Jan 20, 2023
1 parent c4dede7 commit d26cd3b
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 d26cd3b

Please sign in to comment.