Skip to content

Commit fb17eed

Browse files
Naming, wording
1 parent 2811aab commit fb17eed

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/rabbit_plugins.erl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -472,12 +472,12 @@ prepare_plugin(#plugin{type = ez, name = Name, location = Location}, ExpandDir)
472472
[PluginAppDescPath|_] ->
473473
prepare_dir_plugin(PluginAppDescPath);
474474
_ ->
475-
rabbit_log:error("Plugin archive '~s' doesn't contain .app file~n", [Location]),
476-
throw({no_plugin_app_file_in_archive, Name, Location})
475+
rabbit_log:error("Plugin archive '~s' doesn't contain an .app file~n", [Location]),
476+
throw({app_file_missing, Name, Location})
477477
end;
478478
{error, Reason} ->
479-
rabbit_log:error("Plugin archive '~s' unpacking failed: ~p~n", [Location, Reason]),
480-
throw({plugin_unpack_failed, Name, Location, Reason})
479+
rabbit_log:error("Could not unzip plugin archive '~s': ~p~n", [Location, Reason]),
480+
throw({failed_to_unzip_plugin, Name, Location, Reason})
481481
end;
482482
prepare_plugin(#plugin{type = dir, location = Location, name = Name},
483483
_ExpandDir) ->
@@ -486,7 +486,7 @@ prepare_plugin(#plugin{type = dir, location = Location, name = Name},
486486
prepare_dir_plugin(PluginAppDescPath);
487487
_ ->
488488
rabbit_log:error("Plugin directory '~s' doesn't contain an .app file~n", [Location]),
489-
throw({no_plugin_app_file_in_directory, Name, Location})
489+
throw({app_file_missing, Name, Location})
490490
end.
491491

492492
plugin_info({ez, EZ}) ->

0 commit comments

Comments
 (0)