Skip to content

Commit 7c8ccae

Browse files
michaelklishinAlexey Lebedeff
authored and
Alexey Lebedeff
committed
Naming, wording
1 parent ab66157 commit 7c8ccae

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
@@ -262,12 +262,12 @@ prepare_plugin(#plugin{type = ez, name = Name, location = Location}, ExpandDir)
262262
[PluginAppDescPath|_] ->
263263
prepare_dir_plugin(PluginAppDescPath);
264264
_ ->
265-
rabbit_log:error("Plugin archive '~s' doesn't contain .app file~n", [Location]),
266-
throw({no_plugin_app_file_in_archive, Name, Location})
265+
rabbit_log:error("Plugin archive '~s' doesn't contain an .app file~n", [Location]),
266+
throw({app_file_missing, Name, Location})
267267
end;
268268
{error, Reason} ->
269-
rabbit_log:error("Plugin archive '~s' unpacking failed: ~p~n", [Location, Reason]),
270-
throw({plugin_unpack_failed, Name, Location, Reason})
269+
rabbit_log:error("Could not unzip plugin archive '~s': ~p~n", [Location, Reason]),
270+
throw({failed_to_unzip_plugin, Name, Location, Reason})
271271
end;
272272
prepare_plugin(#plugin{type = dir, location = Location, name = Name},
273273
_ExpandDir) ->
@@ -276,7 +276,7 @@ prepare_plugin(#plugin{type = dir, location = Location, name = Name},
276276
prepare_dir_plugin(PluginAppDescPath);
277277
_ ->
278278
rabbit_log:error("Plugin directory '~s' doesn't contain an .app file~n", [Location]),
279-
throw({no_plugin_app_file_in_directory, Name, Location})
279+
throw({app_file_missing, Name, Location})
280280
end.
281281

282282
plugin_info({ez, EZ}) ->

0 commit comments

Comments
 (0)