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
No related merge requests found
......@@ -2,8 +2,8 @@
namespace Drupal\automatic_updates;
use Drupal\automatic_updates\Exception\UpdateException;
use Drupal\Core\Url;
use Drupal\package_manager\Exception\StageValidationException;
use Symfony\Component\HttpFoundation\RedirectResponse;
/**
......@@ -38,7 +38,7 @@ class BatchProcessor {
$error->getMessage(),
];
if ($error instanceof UpdateException) {
if ($error instanceof StageValidationException) {
foreach ($error->getResults() as $result) {
$messages = $result->getMessages();
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