Permalink
Browse files

Correct argument to erlang:error/2

  • Loading branch information...
1 parent 1ba95fb commit 9b1342ecaaf7662f7efaf1041fe394fbb3a11c4d @msantos committed Jan 27, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/procket.erl
View
@@ -342,15 +342,15 @@ optarg({interface, Name}) when is_list(Name) ->
true ->
switch("I", Name);
false ->
- erlang:error(badarg, {interface, Name})
+ erlang:error(badarg, [{interface, Name}])
end;
optarg({dev, Dev}) when is_list(Dev) ->
case is_device(Dev) of
true ->
switch("d", Dev);
false ->
- erlang:error(badarg, {dev, Dev})
+ erlang:error(badarg, [{dev, Dev}])
end;
% Ignore any other arguments

0 comments on commit 9b1342e

Please sign in to comment.