Permalink
Browse files

Semi-consist error code

  • Loading branch information...
msantos committed Jun 26, 2011
1 parent 8e6f190 commit 2f849d1795096155cae5c65b6f42d60cdf50bd24
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/tunctl_linux.erl
View
@@ -114,7 +114,7 @@ up(Dev, {A,B,C,D}, _Mask) when byte_size(Dev) < ?IFNAMSIZ ->
_ -> ok
catch
error:Error ->
- Error
+ {error, Error}
end,
ok = procket:close(Socket),
@@ -128,7 +128,7 @@ down(Dev) when byte_size(Dev) < ?IFNAMSIZ ->
_ -> ok
catch
error:Error ->
- Error
+ {error, Error}
end,
ok = procket:close(Socket),

0 comments on commit 2f849d1

Please sign in to comment.