From 5af2145f3962799ff762a60d504c1e920ded3a5b Mon Sep 17 00:00:00 2001 From: Hans Bolinder Date: Wed, 13 Feb 2013 11:57:37 +0100 Subject: [kernel] FIx a bug that could cause crash with wrong reason --- lib/kernel/src/application_controller.erl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') 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, -- cgit v1.2.3