aboutsummaryrefslogtreecommitdiffstats
path: root/lib/orber/src/orber.erl
diff options
context:
space:
mode:
authorNiclas Eklund <[email protected]>2011-02-14 14:34:00 +0100
committerNiclas Eklund <[email protected]>2011-02-14 14:34:00 +0100
commitd2bb03ce3a6a99f3e3f0abe1f74a355879437c4f (patch)
treec851063fc2b3201d3d64a0abe1be90e5222a9975 /lib/orber/src/orber.erl
parent27d6af0ed32a25d7ea1dcd83a4163f8e6ec67844 (diff)
downloadotp-d2bb03ce3a6a99f3e3f0abe1f74a355879437c4f.tar.gz
otp-d2bb03ce3a6a99f3e3f0abe1f74a355879437c4f.tar.bz2
otp-d2bb03ce3a6a99f3e3f0abe1f74a355879437c4f.zip
Updsated macro EFORMAT exit handling.
Diffstat (limited to 'lib/orber/src/orber.erl')
-rw-r--r--lib/orber/src/orber.erl10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/orber/src/orber.erl b/lib/orber/src/orber.erl
index 9902306161..f0820811f5 100644
--- a/lib/orber/src/orber.erl
+++ b/lib/orber/src/orber.erl
@@ -95,7 +95,13 @@
-define(DEBUG_LEVEL, 5).
-define(FORMAT(_F, _A), lists:flatten(io_lib:format(_F, _A))).
--define(EFORMAT(_F, _A), exit(lists:flatten(io_lib:format(_F, _A)))).
+-define(EFORMAT(_F, _A), do_exit(lists:flatten(io_lib:format(_F, _A)))).
+
+
+%% To avoid dialyzer warnings due to the use of exit/throw.
+-spec(do_exit/1 :: (_) -> no_return()).
+do_exit(Reason) ->
+ exit(Reason).
%%-----------------------------------------------------------------
@@ -1029,8 +1035,6 @@ remove_node(Node) when is_atom(Node) ->
remove_tables(Tables, Node) ->
remove_tables(Tables, Node, []).
-%% To avoid dialyzer warnings due to the use of exit/throw.
--spec(remove_tables/3 :: (_, _, _) -> no_return()).
remove_tables([], _, []) -> ok;
remove_tables([], Node, Failed) ->
?EFORMAT("orber:remove_node(~p) failed. Unable to remove table(s): ~p",