Skip to content
Snippets Groups Projects
Commit 514ccb85 authored by Angie Byron's avatar Angie Byron
Browse files

#1012822 by dww: Fixed exception handling while downloading/verifying a tarball in update manager.

parent 7264290e
No related branches found
No related tags found
No related merge requests found
......@@ -580,8 +580,21 @@ function update_manager_install_form_submit($form, &$form_state) {
drupal_get_updaters();
$project_location = $directory . '/' . $project;
$updater = Updater::factory($project_location);
$project_title = Updater::getProjectTitle($project_location);
try {
$updater = Updater::factory($project_location);
}
catch (Exception $e) {
form_set_error($field, $e->getMessage());
return;
}
try {
$project_title = Updater::getProjectTitle($project_location);
}
catch (Exception $e) {
form_set_error($field, $e->getMessage());
return;
}
if (!$project_title) {
form_set_error($field, t('Unable to determine %project name.', array('%project' => $project)));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment