fix: match plugin_not_found reason

This commit is contained in:
JimMoen 2024-06-19 15:15:58 +08:00
parent 28293284a7
commit b7b2a08399
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -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"}),