aboutsummaryrefslogtreecommitdiffstats
path: root/src/sctp_handler.erl
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-03-10 09:50:17 +0100
committerHarald Welte <laforge@gnumonks.org>2011-03-10 09:50:17 +0100
commit7c406d31d75e34745b067a682ca4832fc056e104 (patch)
tree661c3aa757082ebbda90f0d6cfcef04fd7ee40f8 /src/sctp_handler.erl
parent31765a15be5ec781185203262bdfa4ac19ecc50a (diff)
sctp_handler: provide more expressive exit() reasons/messages
Diffstat (limited to 'src/sctp_handler.erl')
-rw-r--r--src/sctp_handler.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sctp_handler.erl b/src/sctp_handler.erl
index 3011cfa..0a8630c 100644
--- a/src/sctp_handler.erl
+++ b/src/sctp_handler.erl
@@ -87,12 +87,12 @@ handle_sctp(L = #loop_data{msc_sock=MscSock, msc_remote_ip=MscRemoteIp, msc_remo
NewL = L,
% maybe we should simply die?
io:format("MSC SCTP comm_lost~n"),
- exit(1);
+ exit(sctp_comm_lost_msc);
addr_unreachable ->
NewL = L,
io:format("MSC SCTP addr_unreachable~n"),
% maybe we should simply die?
- exit(1)
+ exit(sctp_addr_unreach_msc)
end,
inet:setopts(MscSock, [{active, once}]);
% STP connect or disconnect
@@ -118,7 +118,7 @@ handle_sctp(L = #loop_data{msc_sock=MscSock, msc_remote_ip=MscRemoteIp, msc_remo
% maybe we should simply die?
NewL = L,
io:format("SCTP remote ~p shutdown~n", [RemoteIp]),
- exit(1);
+ exit(ctp_remote_shutdown);
Other ->
io:format("OTHER ~p~n", [Other]),
NewL = L