Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print extra verbose output for download errors to composer command if… #99

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

joshua-graham-adelphi
Copy link

@joshua-graham-adelphi joshua-graham-adelphi commented Jan 7, 2019

… -v is specified.

Command currently fails and unspecified errors.

This prints download errors if verbose mode is specified (-v).

Current output:
myusername@mycomputername MSYS /c/Projects/myproject (mybranch)
$ composer drupal:scaffold

[Exception]
Failed to download https://cgit.drupalcode.org/drupal/plain/sites/example.sites.php, https://cgit.drupalcode.org/drupal/plain/sites/example.settings.local.php, https://cgit.drupalcode.org/drupal/plain/sites
/development.services.yml, https://cgit.drupalcode.org/drupal/plain/sites/default/default.settings.php, https://cgit.drupalcode.org/drupal/plain/sites/default/default.services.yml, https://cgit.drupalcode.o
rg/drupal/plain/robots.txt, https://cgit.drupalcode.org/drupal/plain/index.php, https://cgit.drupalcode.org/drupal/plain/.htaccess, https://cgit.drupalcode.org/drupal/plain/web.config, https://cgit.drupalco
de.org/drupal/plain/update.php, https://cgit.drupalcode.org/drupal/plain/.ht.router.php, https://cgit.drupalcode.org/drupal/plain/.gitattributes, https://cgit.drupalcode.org/drupal/plain/.eslintrc.json, htt
ps://cgit.drupalcode.org/drupal/plain/.eslintignore, https://cgit.drupalcode.org/drupal/plain/.editorconfig, https://cgit.drupalcode.org/drupal/plain/.csslintrc

drupal:scaffold

myusername@mycomputername MSYS /c/Projects/myproject (mybranch)
$`

if -v is specified with new code:
`myusername@mycomputername MSYS /c/Projects/myproject (mybranch)
$ composer drupal:scaffold -v

[Exception]
Failed to download Array
(
[https://cgit.drupalcode.org/drupal/plain/web.config] => 0: error setting certificate verify locations:
CAfile: C:\Program Files (x86)\DevDesktop\common\cert\cacert.pem
CApath: none
[https://cgit.drupalcode.org/drupal/plain/update.php] => 0: error setting certificate verify locations:
CAfile: C:\Program Files (x86)\DevDesktop\common\cert\cacert.pem
CApath: none
[https://cgit.drupalcode.org/drupal/plain/sites/example.sites.php] => 0: error setting certificate verify locations:
CAfile: C:\Program Files (x86)\DevDesktop\common\cert\cacert.pem
CApath: none
[https://cgit.drupalcode.org/drupal/plain/sites/example.settings.local.php] => 0: error setting certificate verify locations:
CAfile: C:\Program Files (x86)\DevDesktop\common\cert\cacert.pem
CApath: none
[https://cgit.drupalcode.org/drupal/plain/sites/development.services.yml] => 0: error setting certificate verify locations:
CAfile: C:\Program Files (x86)\DevDesktop\common\cert\cacert.pem
CApath: none
[https://cgit.drupalcode.org/drupal/plain/sites/default/default.settings.php] => 0: error setting certificate verify locations:
CAfile: C:\Program Files (x86)\DevDesktop\common\cert\cacert.pem
CApath: none
[https://cgit.drupalcode.org/drupal/plain/sites/default/default.services.yml] => 0: error setting certificate verify locations:
CAfile: C:\Program Files (x86)\DevDesktop\common\cert\cacert.pem
CApath: none
[https://cgit.drupalcode.org/drupal/plain/robots.txt] => 0: error setting certificate verify locations:
CAfile: C:\Program Files (x86)\DevDesktop\common\cert\cacert.pem
CApath: none
[https://cgit.drupalcode.org/drupal/plain/index.php] => 0: error setting certificate verify locations:
CAfile: C:\Program Files (x86)\DevDesktop\common\cert\cacert.pem
CApath: none
[https://cgit.drupalcode.org/drupal/plain/.htaccess] => 0: error setting certificate verify locations:
CAfile: C:\Program Files (x86)\DevDesktop\common\cert\cacert.pem
CApath: none
)

Exception trace:
() at C:\Projects\myproject\vendor\drupal-composer\drupal-scaffold\src\PrestissimoFileFetcher.php:83
DrupalComposer\DrupalScaffold\PrestissimoFileFetcher->fetchWithPrestissimo() at C:\Projects\myproject\vendor\drupal-composer\drupal-scaffold\src\PrestissimoFileFetcher.php:35
DrupalComposer\DrupalScaffold\PrestissimoFileFetcher->fetch() at C:\Projects\myproject\vendor\drupal-composer\drupal-scaffold\src\Handler.php:163
DrupalComposer\DrupalScaffold\Handler->downloadScaffold() at C:\Projects\myproject\vendor\drupal-composer\drupal-scaffold\src\DrupalScaffoldCommand.php:31
DrupalComposer\DrupalScaffold\DrupalScaffoldCommand->execute() at phar://C:/Program Files (x86)/DevDesktop/tools/composer.phar/vendor/symfony/console/Command/Command.php:242
Symfony\Component\Console\Command\Command->run() at phar://C:/Program Files (x86)/DevDesktop/tools/composer.phar/vendor/symfony/console/Application.php:843
Symfony\Component\Console\Application->doRunCommand() at phar://C:/Program Files (x86)/DevDesktop/tools/composer.phar/vendor/symfony/console/Application.php:193
Symfony\Component\Console\Application->doRun() at phar://C:/Program Files (x86)/DevDesktop/tools/composer.phar/src/Composer/Console/Application.php:251
Composer\Console\Application->doRun() at phar://C:/Program Files (x86)/DevDesktop/tools/composer.phar/vendor/symfony/console/Application.php:117
Symfony\Component\Console\Application->run() at phar://C:/Program Files (x86)/DevDesktop/tools/composer.phar/src/Composer/Console/Application.php:100
Composer\Console\Application->run() at phar://C:/Program Files (x86)/DevDesktop/tools/composer.phar/bin/composer:59
require() at C:\Program Files (x86)\DevDesktop\tools\composer.phar:24

drupal:scaffold

myusername@mycomputername MSYS /c/Projects/myproject (mybranch)
$`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant