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
|
@ -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
|
||||||
|
|
|
@ -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']))
|
||||||
|
|
Loading…
Add table
Reference in a new issue