Skip to content

Commit

Permalink
Use defexception/1
Browse files Browse the repository at this point in the history
defexception/2 is deprecated
  • Loading branch information
edgurgel committed Jun 14, 2014
1 parent f636c7d commit 6070670
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/httpoison.ex
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ defmodule HTTPoison do
defstruct id: nil
end

defexception HTTPError, message: nil
defmodule HTTPError do
defexception message: nil
end

use HTTPoison.Base
end

0 comments on commit 6070670

Please sign in to comment.