Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

changed erlang:fault to erlang:error. thanks to per andersson for pa…

…tch.

git-svn-id: https://gtknode.googlecode.com/svn/trunk@49 9999ab98-4a1b-0410-ba6a-d90168ca9a37
  • Loading branch information...
commit 768cba2d892c7a00f55e37ce307e157b52eb45a2 1 parent b4c1487
@massemanet authored
View
2  priv/examples/points/points.erl
@@ -78,5 +78,5 @@ snd_rec(Cmd, Args) ->
?MODULE ! {self(),[{Cmd,Args}]},
receive
{?MODULE,{reply,[{ok,Rep}]}} -> Rep;
- {?MODULE,{reply,[{error,Rep}]}} -> erlang:fault({Cmd,Args,Rep})
+ {?MODULE,{reply,[{error,Rep}]}} -> erlang:error({Cmd,Args,Rep})
end.
View
2  priv/examples/top/top.erl
@@ -146,5 +146,5 @@ snd(Cmd, Args) ->
?MODULE ! {self(),[{Cmd,Args}]},
receive
{?MODULE,{reply,[{ok,Rep}]}} -> Rep;
- {?MODULE,{reply,[{error,Rep}]}} -> erlang:fault({Cmd,Args,Rep})
+ {?MODULE,{reply,[{error,Rep}]}} -> erlang:error({Cmd,Args,Rep})
end.
View
4 src/gtknode.erl
@@ -62,7 +62,7 @@ debug(CmdArgs) ->
debug() ->
case whereis(gtknode_dbg) of
undefined -> spawn(fun initDBG/0);
- _ -> erlang:fault({already_started,gtknode_dbg})
+ _ -> erlang:error({already_started,gtknode_dbg})
end.
initDBG() ->
@@ -145,7 +145,7 @@ exe() ->
Bin = basename(GTKNODE_BIN)
end,
case os:find_executable(Bin,Path) of
- false -> erlang:fault({executable_not_found,Bin});
+ false -> erlang:error({executable_not_found,Bin});
Exe -> Exe
end.

0 comments on commit 768cba2

Please sign in to comment.
Something went wrong with that request. Please try again.