diff --git a/modules/system/console/PluginRefresh.php b/modules/system/console/PluginRefresh.php index 45be43384..d6c35cb6c 100644 --- a/modules/system/console/PluginRefresh.php +++ b/modules/system/console/PluginRefresh.php @@ -38,6 +38,9 @@ class PluginRefresh extends Command { $pluginName = $this->argument('name'); $pluginName = PluginManager::instance()->normalizeIdentifier($pluginName); + if (!PluginManager::instance()->exists($pluginName)) { + throw new \InvalidArgumentException(sprintf('Plugin "%s" not found.', $pluginName)); + } $manager = UpdateManager::instance()->resetNotes();