Permalink
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...
1 parent b4c1487 commit 768cba2d892c7a00f55e37ce307e157b52eb45a2 @massemanet committed Jan 13, 2010
Showing with 4 additions and 4 deletions.
  1. +1 −1 priv/examples/points/points.erl
  2. +1 −1 priv/examples/top/top.erl
  3. +2 −2 src/gtknode.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.
@@ -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
@@ -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.