aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/src/base/diameter_codec.erl
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2012-08-28 15:05:22 +0200
committerAnders Svensson <[email protected]>2012-08-28 15:05:22 +0200
commit88c13abb6e803c2be0288ce0c46f080e951fc8b0 (patch)
tree1893986d7be49b8727dfe458ead44938db8592ef /lib/diameter/src/base/diameter_codec.erl
parentbc2b1d56047bd370dd6e1e5b5377601bfcd89d23 (diff)
parent1c3884894917a7e84d95f7c82c61c6205d802717 (diff)
downloadotp-88c13abb6e803c2be0288ce0c46f080e951fc8b0.tar.gz
otp-88c13abb6e803c2be0288ce0c46f080e951fc8b0.tar.bz2
otp-88c13abb6e803c2be0288ce0c46f080e951fc8b0.zip
Merge branch 'anders/diameter/capabilities_encode/OTP-10203' into maint
* anders/diameter/capabilities_encode/OTP-10203: Deal with the fact that capabilities config may be incomplete
Diffstat (limited to 'lib/diameter/src/base/diameter_codec.erl')
-rw-r--r--lib/diameter/src/base/diameter_codec.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/diameter/src/base/diameter_codec.erl b/lib/diameter/src/base/diameter_codec.erl
index fb109fe271..421e280422 100644
--- a/lib/diameter/src/base/diameter_codec.erl
+++ b/lib/diameter/src/base/diameter_codec.erl
@@ -63,9 +63,9 @@ encode(Mod, #diameter_packet{} = Pkt) ->
e(Mod, Pkt)
catch
error: Reason ->
- %% Be verbose rather than letting the emulator truncate the
- %% error report.
- X = {Reason, ?STACK},
+ %% Be verbose since a crash report may be truncated and
+ %% encode errors are self-inflicted.
+ X = {?MODULE, encode, {Reason, ?STACK}},
diameter_lib:error_report(X, {?MODULE, encode, [Mod, Pkt]}),
exit(X)
end;