aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2011-09-23 18:27:51 +0200
committerAnders Svensson <[email protected]>2011-09-26 17:24:06 +0200
commit657c9991dd4b87234cddcc389a527ef99e76dfd4 (patch)
treeb3ae994df5b273ef4c3bd9fd79c47a368c40a7b9
parent2ba082f42a77d901b5306d15f05e1717ad137e00 (diff)
downloadotp-657c9991dd4b87234cddcc389a527ef99e76dfd4.tar.gz
otp-657c9991dd4b87234cddcc389a527ef99e76dfd4.tar.bz2
otp-657c9991dd4b87234cddcc389a527ef99e76dfd4.zip
Remove duplicate info from error report at encode failure
The message being encoded and dictionary module are included by diameter_codec.erl so diameter_gen.hrl doing so was overkill.
-rw-r--r--lib/diameter/include/diameter_gen.hrl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/diameter/include/diameter_gen.hrl b/lib/diameter/include/diameter_gen.hrl
index 4c91954a21..d037e1044a 100644
--- a/lib/diameter/include/diameter_gen.hrl
+++ b/lib/diameter/include/diameter_gen.hrl
@@ -44,14 +44,14 @@ encode_avps(Name, Rec) ->
?MODULE,
?LINE,
{Reason, Name, Rec}),
- erlang:error(list_to_tuple(Reason ++ [Name, Rec, ?MODULE]));
+ erlang:error(list_to_tuple(Reason ++ [Name]));
error: Reason ->
Stack = erlang:get_stacktrace(),
diameter_dbg:log({encode, failure},
?MODULE,
?LINE,
{Reason, Name, Rec, Stack}),
- erlang:error({encode_failure, Reason, Name, Rec, ?MODULE, Stack})
+ erlang:error({encode_failure, Reason, Name, Stack})
end.
%% encode/2