cancel
Showing results for 
Search instead for 
Did you mean: 

Improve error reporting in Magento Cli

0 Kudos

Improve error reporting in Magento Cli

As specified in #4832, when running the Cli application, if an exception comes up, the error doesn't get reported to the user.
A suggestion from @adragus-inviqa would be a very useful tool for debugging permission issues, among other things:

 

"This one needs better handling of the exceptions thrown in \Magento\Framework\Console\Cli::doRun().

Something like

 

        try {
            $exitCode = parent::doRun($input, $output);
        } catch (\Exception $e) {
            $output->writeln($e->getTraceAsString());
        }

This will get you the real exception."

 

Thanks,

 

Leonardo

1 Comment
leoquijano
M2 Certified

This is the original link for the idea:

https://github.com/magento/magento2/issues/4832