summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Hood <0x6e6562@gmail.com>2009-07-12 14:58:21 +0100
committerBen Hood <0x6e6562@gmail.com>2009-07-12 14:58:21 +0100
commit29f990714ff80995c52aa5492b2235dd71d39955 (patch)
treec0a093ed6e63962b211dfe776f0bb034e34338af
parenta3aa28d0fce924b54cbd3b26c8a4df4abdb9f99c (diff)
downloadrabbitmq-server-29f990714ff80995c52aa5492b2235dd71d39955.tar.gz
Exits if the app descriptor cannot be loaded
-rw-r--r--src/rabbit_plugin.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rabbit_plugin.erl b/src/rabbit_plugin.erl
index 3d505f4f..ede7abcf 100644
--- a/src/rabbit_plugin.erl
+++ b/src/rabbit_plugin.erl
@@ -66,8 +66,9 @@ ensure_dependencies(Plugin) when is_atom(Plugin)->
{error, {already_loaded, Plugin}} -> ok;
{error, Reason} ->
rabbit_log:error("Error loading descriptor for ~p plugin: "
- "~p~n", [Plugin, Reason])
- end,
+ "~p~n", [Plugin, Reason]),
+ exit(plugin_not_loadable)
+ end,
{ok, Required} = application:get_key(Plugin, applications),
{Running, _, _} = lists:unzip3(application:which_applications()),
[case lists:member(App, Running) of