Skip to content

Better exception handling during cli commands #24043

Closed
@PascalBrouwers

Description

@PascalBrouwers

Preconditions (*)

  1. Magento 2.3.x

Steps to reproduce (*)

  1. Have a module with a wrong path in registration.php. For example set the path in vendor/magento/module-catalog/registration.php to __DIR__ . '/wrong_folder'
  2. Run bin/magento setup:upgrade

Expected result (*)

  1. A clear exception what actually goes wrong. Instead the general error There are no commands defined in the "setup" namespace. is displayed.

Actual result (*)

  1. The general error There are no commands defined in the "setup" namespace. is displayed.

Also see: #4832

Metadata

Metadata

Labels

Fixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Format is validGate 1 Passed. Automatic verification of issue format passed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions