diff --git a/src/src/Commands/Backend/AddBackend.php b/src/src/Commands/Backend/AddBackend.php index 690193bd..7d0ce3de 100644 --- a/src/src/Commands/Backend/AddBackend.php +++ b/src/src/Commands/Backend/AddBackend.php @@ -125,12 +125,12 @@ protected function execute( InputInterface $input, OutputInterface $output ): in try { $this->woo_extensions_list->fetch_woo_extensions_available(); if ( empty( $this->woo_extensions_list->get_woo_extension_list() ) ) { - throw new \RuntimeException(); + throw new \RuntimeException( 'Failed to get the list of Extensions. Do you have any?' ); } } catch ( \Exception $e ) { $this->auth->delete_manager_secret(); $this->cache->delete( 'manager_url' ); - $output->writeln( sprintf( 'We could not authenticate to %s using the provided Manager Secret.', escapeshellarg( $manager_url ) ) ); + $output->writeln( sprintf( 'We could not authenticate to %s using the provided Manager Secret. Error: %s', escapeshellarg( $manager_url ), $e->getMessage() ) ); return Command::FAILURE; }