Add error handling for unspecified package in PackageManagerMenu
This commit is contained in:
parent
2605b8d218
commit
7293519ba3
2 changed files with 8 additions and 1 deletions
|
@ -145,6 +145,12 @@
|
|||
$repository_manager = new RepositoryManager();
|
||||
$package_manager = new PackageManager();
|
||||
|
||||
if($package === null)
|
||||
{
|
||||
Console::outError('No package specified', true, 1);
|
||||
return 1;
|
||||
}
|
||||
|
||||
$options = [];
|
||||
|
||||
if(isset($args['reinstall']))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue