Skip to content
Snippets Groups Projects
Commit d24c833a authored by Adam G-H's avatar Adam G-H
Browse files

Switch exception type

parent 0b3a36c1
No related branches found
No related tags found
1 merge request!213Issue #3248928: Redirect or provide link to apply form for user who started update if accessing start form
This commit is part of merge request !213. Comments created here will be created in the context of that merge request.
......@@ -14,7 +14,7 @@ use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Link;
use Drupal\Core\State\StateInterface;
use Drupal\Core\Url;
use Drupal\package_manager\Exception\StageException;
use Drupal\package_manager\Exception\StageOwnershipException;
use Drupal\system\SystemManager;
use Drupal\update\UpdateManagerInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
......@@ -131,7 +131,7 @@ class UpdaterForm extends FormBase {
'stage_id' => $stage_id,
]);
}
catch (StageException $e) {
catch (StageOwnershipException $e) {
// We already know a stage exists, even if it's not ours, so we don't
// have to do anything else here.
}
......
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