fix: match plugin_not_found reason
This commit is contained in:
parent
28293284a7
commit
b7b2a08399
|
@ -566,7 +566,7 @@ install_package(FileName, Bin) ->
|
|||
PackageName = string:trim(FileName, trailing, ".tar.gz"),
|
||||
put(?fresh_install, true),
|
||||
case emqx_plugins:ensure_installed(PackageName) of
|
||||
{error, #{reason := not_found}} = NotFound ->
|
||||
{error, #{reason := plugin_not_found}} = NotFound ->
|
||||
NotFound;
|
||||
{error, Reason} = Error ->
|
||||
?SLOG(error, Reason#{msg => "failed_to_install_plugin"}),
|
||||
|
|
Loading…
Reference in New Issue