Skip to content

Commit

Permalink
fix: form validations are by passed when an Exception is thrown (#1218)
Browse files Browse the repository at this point in the history
fix: #1217
  • Loading branch information
sad270 authored Feb 5, 2025
1 parent 030e482 commit 4eca9f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Block/BlockServiceManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,10 @@ public function validate(ErrorElement $errorElement, BlockInterface $block): voi
}

$this->inValidate = false;
} catch (\Exception) {
} catch (\Exception $exception) {
$this->inValidate = false;

throw $exception;
}
}

Expand Down

0 comments on commit 4eca9f8

Please sign in to comment.