From 0896ef6263ff2ed5d75890e1fee0a39daed2269a Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Thu, 1 Aug 2013 05:52:37 +0100 Subject: handle errors returned by boot steps --- src/rabbit.erl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rabbit.erl b/src/rabbit.erl index eae3b802..17426cfc 100644 --- a/src/rabbit.erl +++ b/src/rabbit.erl @@ -472,6 +472,9 @@ run_boot_step({_StepName, Attributes}) -> MFAs -> [try apply(M,F,A) + of + ok -> ok; + {error, Reason} -> boot_error(Reason, not_available) catch _:Reason -> boot_error(Reason, erlang:get_stacktrace()) end || {M,F,A} <- MFAs], -- cgit v1.2.1