mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Cut the string when calling halt/1
This commit is contained in:
parent
d6a076dae8
commit
d4d28e038b
@ -215,7 +215,7 @@ exit_or_halt(ExitText) ->
|
|||||||
case [Vsn || {ejabberd, _Desc, Vsn} <- application:which_applications()] of
|
case [Vsn || {ejabberd, _Desc, Vsn} <- application:which_applications()] of
|
||||||
[] ->
|
[] ->
|
||||||
timer:sleep(1000),
|
timer:sleep(1000),
|
||||||
halt(ExitText);
|
halt(string:substr(ExitText, 1, 199));
|
||||||
[_] ->
|
[_] ->
|
||||||
exit(ExitText)
|
exit(ExitText)
|
||||||
end.
|
end.
|
||||||
|
@ -79,7 +79,7 @@ start_module(Host, Module, Opts) ->
|
|||||||
false ->
|
false ->
|
||||||
?CRITICAL_MSG("ejabberd initialization was aborted because a module start failed.", []),
|
?CRITICAL_MSG("ejabberd initialization was aborted because a module start failed.", []),
|
||||||
timer:sleep(3000),
|
timer:sleep(3000),
|
||||||
erlang:halt(lists:flatten(ErrorText))
|
erlang:halt(string:substr(lists:flatten(ErrorText), 1, 199))
|
||||||
end
|
end
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user