mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Improves plugin:refresh error handling
This commit is contained in:
parent
73ed24c4c1
commit
898266f26a
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user