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

Issue #3252328 by phenaproxima:...

Issue #3252328 by phenaproxima: \Drupal\automatic_updates\BatchProcessor::handleException only displays messages for validation for UpdateException not StageValidationException
parent 1f2d2fa4
No related branches found
No related tags found
1 merge request!135Issue #3252328: \Drupal\automatic_updates\BatchProcessor::handleException only displays messages for validation for UpdateException not StageValidationException
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
namespace Drupal\automatic_updates; namespace Drupal\automatic_updates;
use Drupal\automatic_updates\Exception\UpdateException;
use Drupal\Core\Url; use Drupal\Core\Url;
use Drupal\package_manager\Exception\StageValidationException;
use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\RedirectResponse;
/** /**
...@@ -38,7 +38,7 @@ class BatchProcessor { ...@@ -38,7 +38,7 @@ class BatchProcessor {
$error->getMessage(), $error->getMessage(),
]; ];
if ($error instanceof UpdateException) { if ($error instanceof StageValidationException) {
foreach ($error->getResults() as $result) { foreach ($error->getResults() as $result) {
$messages = $result->getMessages(); $messages = $result->getMessages();
if (count($messages) > 1) { if (count($messages) > 1) {
......
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