Commit a0a16b2c authored by mig5's avatar mig5

Issue #1573182 - Verifying a platform should abort if it can't be bootstrapped

parent ec06cf84
......@@ -63,6 +63,11 @@ 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()) {
return drush_set_error("DRUSH_INVALID_DRUPAL_ROOT",
"Drush could not bootstrap this platform. Please check the platform directory exists and is readable.");
}
provision_file()->writable(d()->root . '/sites')
->succeed('Drupal sites directory @path is writable by the provisioning script')
->fail('Drupal sites directory @path is not writable by the provisioning script', 'PROVISION_SITES_DIR_NOT_WRITABLE');
......
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