summaryrefslogtreecommitdiff
path: root/src/rabbit.erl
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2013-08-01 05:52:37 +0100
committerMatthias Radestock <matthias@rabbitmq.com>2013-08-01 05:52:37 +0100
commitbc062feec10a8b9507ca1a91477c4ced11f93d0f (patch)
treead25a4aa734e0bbf4a5bf3fafa971f5c365d2022 /src/rabbit.erl
parent201e4a5a2f88c707f67427e00f7a8363891370db (diff)
downloadrabbitmq-server-git-bc062feec10a8b9507ca1a91477c4ced11f93d0f.tar.gz
handle errors returned by boot steps
Diffstat (limited to 'src/rabbit.erl')
-rw-r--r--src/rabbit.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl
index eae3b80296..17426cfc6f 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],