diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2018-08-28 10:41:57 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2018-08-28 10:41:57 +0300 |
commit | b30a9f2f75471e2d376da43dab3509fbc75d9ceb (patch) | |
tree | 585807201b8f805eae899b43fad41fbccf936115 /src | |
parent | Fix max_user_conferences in Mnesia to consider only one MUC service (#2556) (diff) |
Better formatting of unexpected return from Module:start/2
Diffstat (limited to 'src')
-rw-r--r-- | src/gen_mod.erl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gen_mod.erl b/src/gen_mod.erl index 040bcb7b8..8d225461c 100644 --- a/src/gen_mod.erl +++ b/src/gen_mod.erl @@ -731,9 +731,10 @@ format_module_error(Module, Fun, Arity, Opts, Class, Reason, St) -> "is it really an ejabberd module?", [Fun, Module, Fun, Arity]); {error, {bad_return, Module, Ret}} -> - io_lib:format("Module ~s returned unexpected value from " - "~s/~B: ~p; this is either not an ejabberd " - "module or it implements ejabbed API incorrectly", + io_lib:format("Module ~s returned unexpected value from ~s/~B:~n" + "** Error: ~p~n" + "** Hint: this is either not an ejabberd module " + "or it implements ejabbed API incorrectly", [Module, Fun, Arity, Ret]); _ -> io_lib:format("Internal error of module ~s has " |