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
|
@ -17,9 +17,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
### Fixed
|
||||
- When finding package versions in the package lock, ncc will try to find a satisfying version rather than the exact
|
||||
version, this is to prevent errors when the package lock contains a version that is not available in the repository.
|
||||
- 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
|
||||
the correct installation path.
|
||||
- Add error handling for unspecified package in PackageManagerMenu
|
||||
|
||||
|
||||
## [2.0.2] - 2023-10-13
|
||||
|
|
|
@ -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
Reference in a new issue