diff --git a/CHANGELOG.md b/CHANGELOG.md index 471bf96..cea4402 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/ncc/CLI/Management/PackageManagerMenu.php b/src/ncc/CLI/Management/PackageManagerMenu.php index 890f13f..8af6710 100644 --- a/src/ncc/CLI/Management/PackageManagerMenu.php +++ b/src/ncc/CLI/Management/PackageManagerMenu.php @@ -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']))