aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2013-02-13 11:57:37 +0100
committerHans Bolinder <[email protected]>2013-02-13 11:58:13 +0100
commit5af2145f3962799ff762a60d504c1e920ded3a5b (patch)
treee1026d15ce4c606cdc308f20c6d6d51005d4f35d /lib/kernel
parentcd08400f92ec7672025bf39a458effcf33a423dc (diff)
downloadotp-5af2145f3962799ff762a60d504c1e920ded3a5b.tar.gz
otp-5af2145f3962799ff762a60d504c1e920ded3a5b.tar.bz2
otp-5af2145f3962799ff762a60d504c1e920ded3a5b.zip
[kernel] FIx a bug that could cause crash with wrong reason
Diffstat (limited to 'lib/kernel')
-rw-r--r--lib/kernel/src/application_controller.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/kernel/src/application_controller.erl b/lib/kernel/src/application_controller.erl
index 1602745669..9ed2c7a7d9 100644
--- a/lib/kernel/src/application_controller.erl
+++ b/lib/kernel/src/application_controller.erl
@@ -495,6 +495,8 @@ init(Init, Kernel) ->
{'EXIT', LoadError} ->
Reason = {'load error', LoadError},
Init ! {ack, self(), {error, to_string(Reason)}};
+ {error, Error} ->
+ Init ! {ack, self(), {error, to_string(Error)}};
{ok, NewS} ->
Init ! {ack, self(), ok},
gen_server:enter_loop(?MODULE, [], NewS,