diff options
author | Matthew Sackman <matthew@rabbitmq.com> | 2010-09-14 14:51:56 +0100 |
---|---|---|
committer | Matthew Sackman <matthew@rabbitmq.com> | 2010-09-14 14:51:56 +0100 |
commit | 7b8143ab4e210fc2bbed010c3ab2e98c0e0457cc (patch) | |
tree | 8efe488eb26457cf0704d5444bd5997cacdc1b5e | |
parent | 8b8047db54c5ccaa595e07dd428def8488759dcd (diff) | |
download | rabbitmq-server-7b8143ab4e210fc2bbed010c3ab2e98c0e0457cc.tar.gz |
cosmetic
-rw-r--r-- | src/gen_server2.erl | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gen_server2.erl b/src/gen_server2.erl index af234529..45e3848c 100644 --- a/src/gen_server2.erl +++ b/src/gen_server2.erl @@ -1104,15 +1104,17 @@ function_exported_or_default(Mod, Fun, Ar, Default) -> true -> case Ar of 2 -> fun (Msg, GS2State = #gs2_state { state = State }) -> case catch Mod:Fun(Msg, State) of - Res when is_integer(Res) -> Res; - Err -> + Res when is_integer(Res) -> + Res; + Err -> handle_common_termination(Err, Msg, GS2State) end end; 3 -> fun (Msg, From, GS2State = #gs2_state { state = State }) -> case catch Mod:Fun(Msg, From, State) of - Res when is_integer(Res) -> Res; - Err -> + Res when is_integer(Res) -> + Res; + Err -> handle_common_termination(Err, Msg, GS2State) end end |