diff options
author | Hans Bolinder <[email protected]> | 2013-02-13 11:57:37 +0100 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2013-02-13 11:58:13 +0100 |
commit | 5af2145f3962799ff762a60d504c1e920ded3a5b (patch) | |
tree | e1026d15ce4c606cdc308f20c6d6d51005d4f35d /lib/kernel | |
parent | cd08400f92ec7672025bf39a458effcf33a423dc (diff) | |
download | otp-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.erl | 2 |
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, |