diff options
author | Anders Svensson <[email protected]> | 2012-08-22 19:56:02 +0200 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2012-08-24 00:29:58 +0200 |
commit | 1c3884894917a7e84d95f7c82c61c6205d802717 (patch) | |
tree | 31c88ec8d9bd908adfef5f825e2817a679561efd /lib/diameter/src/base/diameter_codec.erl | |
parent | cfea5eea406ba3af96588ff458e55de9a149d9c5 (diff) | |
download | otp-1c3884894917a7e84d95f7c82c61c6205d802717.tar.gz otp-1c3884894917a7e84d95f7c82c61c6205d802717.tar.bz2 otp-1c3884894917a7e84d95f7c82c61c6205d802717.zip |
Deal with the fact that capabilities config may be incomplete
A transport can be configured before its service so handle
insufficient configuration instead of crashing at CER/CEA encode.
Diffstat (limited to 'lib/diameter/src/base/diameter_codec.erl')
-rw-r--r-- | lib/diameter/src/base/diameter_codec.erl | 6 |
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 fe1212b7e0..88aabc1e4a 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; |