aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/src/base/diameter_watchdog.erl
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2013-03-26 09:51:59 +0100
committerAnders Svensson <[email protected]>2013-03-26 17:13:29 +0100
commit56c0af010d6da861b8e8675ba5309381d926c67e (patch)
tree7ca06a53f45b6a658dea622352d09c52969907c8 /lib/diameter/src/base/diameter_watchdog.erl
parentb6a38ba05bdd437adcb7e192c6ab0c2ca0718f76 (diff)
downloadotp-56c0af010d6da861b8e8675ba5309381d926c67e.tar.gz
otp-56c0af010d6da861b8e8675ba5309381d926c67e.tar.bz2
otp-56c0af010d6da861b8e8675ba5309381d926c67e.zip
Deal with config errors detected at transport start less brutally
Crashing watchdog and peer_fsm processes was somewhat unseemly. Emit an error report and die silently instead.
Diffstat (limited to 'lib/diameter/src/base/diameter_watchdog.erl')
-rw-r--r--lib/diameter/src/base/diameter_watchdog.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/diameter/src/base/diameter_watchdog.erl b/lib/diameter/src/base/diameter_watchdog.erl
index 3cbf91c574..41c493ff20 100644
--- a/lib/diameter/src/base/diameter_watchdog.erl
+++ b/lib/diameter/src/base/diameter_watchdog.erl
@@ -225,7 +225,8 @@ dict0(_, _, Acc) ->
Acc.
config_error(T) ->
- ?ERROR({configuration_error, T}).
+ diameter_lib:error_report(configuration_error, T),
+ exit({shutdown, {configuration_error, T}}).
%% handle_call/3