File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
lib/internal/Magento/Framework/Console Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,12 @@ public function __construct($name = 'UNKNOWN', $version = 'UNKNOWN')
102
102
*/
103
103
public function doRun (Console \Input \InputInterface $ input , Console \Output \OutputInterface $ output )
104
104
{
105
- $ exitCode = parent ::doRun ($ input , $ output );
105
+ $ exitCode = null ;
106
+ try {
107
+ $ exitCode = parent ::doRun ($ input , $ output );
108
+ } catch (\Exception $ e ) {
109
+ $ output ->writeln ($ e ->getTraceAsString ());
110
+ }
106
111
107
112
if ($ this ->initException ) {
108
113
throw $ this ->initException ;
@@ -209,6 +214,7 @@ protected function getVendorCommands($objectManager)
209
214
$ commands = [];
210
215
foreach (CommandLocator::getCommands () as $ commandListClass ) {
211
216
if (class_exists ($ commandListClass )) {
217
+ // phpcs:ignore Magento2.Performance.ForeachArrayMerge
212
218
$ commands = array_merge (
213
219
$ commands ,
214
220
$ objectManager ->create ($ commandListClass )->getCommands ()
You can’t perform that action at this time.
0 commit comments