Commit f234cccf authored by Jon Pugh's avatar Jon Pugh
Browse files

Instead of just saying "Drush could not bootstrap this platform.", print the error if there is one.

parent c1627370
......@@ -81,9 +81,9 @@ function drush_provision_drupal_pre_provision_verify() {
drush_bootstrap(DRUSH_BOOTSTRAP_DRUPAL_ROOT);
// If we couldn't bootstrap, there's no sense in continuing past this point.
if (drush_get_error()) {
if ($error = drush_get_error()) {
return drush_set_error("DRUSH_INVALID_DRUPAL_ROOT",
"Drush could not bootstrap this platform. Please check the platform directory exists and is readable.");
"Drush could not bootstrap this platform. Please check the platform directory exists and is readable. The errors were: " . print_r($error,1));
}
provision_file()->writable(d()->root . '/sites')
->succeed('Drupal sites directory @path is writable by the provisioning script')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment