summaryrefslogtreecommitdiff
path: root/src/gen_server2.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/gen_server2.erl')
-rw-r--r--src/gen_server2.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gen_server2.erl b/src/gen_server2.erl
index 0365b68e..9fb9e2fe 100644
--- a/src/gen_server2.erl
+++ b/src/gen_server2.erl
@@ -1006,7 +1006,8 @@ error_info(Reason, RootCause, Name, Msg, State, Debug) ->
"** Reason for termination == ~n** ~p~n",
case RootCause of
undefined -> format(Fmt, [Name, Msg, State, Reason1]);
- _ -> format(Fmt ++ "** Root cause for termination ==~n** ~p~n",
+ _ -> format(Fmt ++ "** In 'terminate' callback "
+ "with reason ==~n** ~p~n",
[Name, Msg, State, Reason1,
error_reason(RootCause)])
end,