Add error handling for unspecified package in PackageManagerMenu

This commit is contained in:
Netkas 2023-10-17 21:27:40 -04:00
parent 2605b8d218
commit 7293519ba3
No known key found for this signature in database
GPG key ID: 5DAF58535614062B
2 changed files with 8 additions and 1 deletions

View file

@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed issue when registering ncc's extension, when using the INSTALLER, the installation path used in the process - Fixed issue when registering ncc's extension, when using the INSTALLER, the installation path used in the process
appears to be incorrect, added a optional parameter to the `registerExtension` method to allow the installer to pass appears to be incorrect, added a optional parameter to the `registerExtension` method to allow the installer to pass
the correct installation path. the correct installation path.
- Add error handling for unspecified package in PackageManagerMenu
## [2.0.2] - 2023-10-13 ## [2.0.2] - 2023-10-13

View file

@ -145,6 +145,12 @@
$repository_manager = new RepositoryManager(); $repository_manager = new RepositoryManager();
$package_manager = new PackageManager(); $package_manager = new PackageManager();
if($package === null)
{
Console::outError('No package specified', true, 1);
return 1;
}
$options = []; $options = [];
if(isset($args['reinstall'])) if(isset($args['reinstall']))