aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src
diff options
context:
space:
mode:
authorserge <[email protected]>2012-10-11 23:48:25 -0400
committerHenrik Nord <[email protected]>2012-12-10 14:56:36 +0100
commit6e8da51daf81fc4ce3aac0deef6548a3af34d9eb (patch)
treec2fca114adf19b90c04d2df2ecaa80e3b571557a /lib/kernel/src
parent13bf84f59fca26e3fcf644b566db0100b8f01546 (diff)
downloadotp-6e8da51daf81fc4ce3aac0deef6548a3af34d9eb.tar.gz
otp-6e8da51daf81fc4ce3aac0deef6548a3af34d9eb.tar.bz2
otp-6e8da51daf81fc4ce3aac0deef6548a3af34d9eb.zip
Fix printout of application crash message on startup
This is what a sample crash message looks like before applying patch: Kernel pid terminated (application_controller) ({application_start_failure,cmp,{{bad_return_value, {doc_root_not_exists,[46,47,119,119,119]}},{cmp_app,start,[normal,[]]}}}) This is what a sample crash message looks like after applying patch: Kernel pid terminated (application_controller) ({application_start_failure,cmp,{{bad_return_value, {doc_root_not_exists,"./www"}},{cmp_app,start,[normal,[]]}}})
Diffstat (limited to 'lib/kernel/src')
-rw-r--r--lib/kernel/src/application_controller.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/kernel/src/application_controller.erl b/lib/kernel/src/application_controller.erl
index 68cd26ec10..75ce852001 100644
--- a/lib/kernel/src/application_controller.erl
+++ b/lib/kernel/src/application_controller.erl
@@ -1960,5 +1960,5 @@ to_string(Term) ->
true ->
Term;
false ->
- lists:flatten(io_lib:write(Term))
+ lists:flatten(io_lib:format("~134217728p", [Term]))
end.