diff options
| author | Michael Klishin <mklishin@pivotal.io> | 2017-05-23 16:19:00 +0300 |
|---|---|---|
| committer | Alexey Lebedeff <alebedev@mirantis.com> | 2017-05-23 19:24:31 +0300 |
| commit | 7c8ccae3b3821740dd66cf61b307e9682b132c65 (patch) | |
| tree | 6bdf0e5b5b4a305e98d8c9361012db360e130925 /src | |
| parent | ab66157805aecdc07675418229511154ecb423e7 (diff) | |
| download | rabbitmq-server-git-7c8ccae3b3821740dd66cf61b307e9682b132c65.tar.gz | |
Naming, wording
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_plugins.erl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/rabbit_plugins.erl b/src/rabbit_plugins.erl index 0a82203678..7c1217c543 100644 --- a/src/rabbit_plugins.erl +++ b/src/rabbit_plugins.erl @@ -262,12 +262,12 @@ prepare_plugin(#plugin{type = ez, name = Name, location = Location}, ExpandDir) [PluginAppDescPath|_] -> prepare_dir_plugin(PluginAppDescPath); _ -> - rabbit_log:error("Plugin archive '~s' doesn't contain .app file~n", [Location]), - throw({no_plugin_app_file_in_archive, Name, Location}) + rabbit_log:error("Plugin archive '~s' doesn't contain an .app file~n", [Location]), + throw({app_file_missing, Name, Location}) end; {error, Reason} -> - rabbit_log:error("Plugin archive '~s' unpacking failed: ~p~n", [Location, Reason]), - throw({plugin_unpack_failed, Name, Location, Reason}) + rabbit_log:error("Could not unzip plugin archive '~s': ~p~n", [Location, Reason]), + throw({failed_to_unzip_plugin, Name, Location, Reason}) end; prepare_plugin(#plugin{type = dir, location = Location, name = Name}, _ExpandDir) -> @@ -276,7 +276,7 @@ prepare_plugin(#plugin{type = dir, location = Location, name = Name}, prepare_dir_plugin(PluginAppDescPath); _ -> rabbit_log:error("Plugin directory '~s' doesn't contain an .app file~n", [Location]), - throw({no_plugin_app_file_in_directory, Name, Location}) + throw({app_file_missing, Name, Location}) end. plugin_info({ez, EZ}) -> |
