Skip to content

Commit

Permalink
Semi-consist error code
Browse files Browse the repository at this point in the history
  • Loading branch information
msantos committed Jun 26, 2011
1 parent 8e6f190 commit 2f849d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tunctl_linux.erl
Expand Up @@ -114,7 +114,7 @@ up(Dev, {A,B,C,D}, _Mask) when byte_size(Dev) < ?IFNAMSIZ ->
_ -> ok _ -> ok
catch catch
error:Error -> error:Error ->
Error {error, Error}
end, end,


ok = procket:close(Socket), ok = procket:close(Socket),
Expand All @@ -128,7 +128,7 @@ down(Dev) when byte_size(Dev) < ?IFNAMSIZ ->
_ -> ok _ -> ok
catch catch
error:Error -> error:Error ->
Error {error, Error}
end, end,


ok = procket:close(Socket), ok = procket:close(Socket),
Expand Down

0 comments on commit 2f849d1

Please sign in to comment.