summaryrefslogtreecommitdiff
path: root/src/gen_mod.erl
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2011-05-30 17:11:32 +0200
committerBadlop <badlop@process-one.net>2011-05-30 17:11:32 +0200
commitd4d28e038b4d72c66c02a20d2098f4f3542937d5 (patch)
tree8af4c9d9168398da22692b8ca1d33c6d573d815a /src/gen_mod.erl
parentUnder some circumstances the "uri" variable in StartNamespaceDeclHandler coul... (diff)
Cut the string when calling halt/1
Diffstat (limited to 'src/gen_mod.erl')
-rw-r--r--src/gen_mod.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gen_mod.erl b/src/gen_mod.erl
index 397cbc35..0f577d31 100644
--- a/src/gen_mod.erl
+++ b/src/gen_mod.erl
@@ -79,7 +79,7 @@ start_module(Host, Module, Opts) ->
false ->
?CRITICAL_MSG("ejabberd initialization was aborted because a module start failed.", []),
timer:sleep(3000),
- erlang:halt(lists:flatten(ErrorText))
+ erlang:halt(string:substr(lists:flatten(ErrorText), 1, 199))
end
end.