Skip to content

Commit

Permalink
Fix warning in Module
Browse files Browse the repository at this point in the history
  • Loading branch information
lexmag committed May 1, 2017
1 parent 24f851a commit 1fdd1bf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/elixir/lib/module.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1199,8 +1199,9 @@ defmodule Module do
{atom, 0} = tuple when is_atom(atom) ->
tuple
other ->
raise ArgumentError, "expected the @on_load attribute to be an atom or a " <>
"{atom, 0} tuple, got: #{inspect(value)}"
raise ArgumentError,
"expected the @on_load attribute to be an atom or a " <>
"{atom, 0} tuple, got: #{inspect(other)}"
end
end

Expand Down

0 comments on commit 1fdd1bf

Please sign in to comment.