diff options
author | Anders Svensson <[email protected]> | 2011-09-23 18:27:51 +0200 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2011-09-26 17:24:06 +0200 |
commit | 657c9991dd4b87234cddcc389a527ef99e76dfd4 (patch) | |
tree | b3ae994df5b273ef4c3bd9fd79c47a368c40a7b9 /lib/diameter/include | |
parent | 2ba082f42a77d901b5306d15f05e1717ad137e00 (diff) | |
download | otp-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.
Diffstat (limited to 'lib/diameter/include')
-rw-r--r-- | lib/diameter/include/diameter_gen.hrl | 4 |
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 |