Skip to content

Commit

Permalink
fix: form validations are by passed when an Exception is thrown
Browse files Browse the repository at this point in the history
  • Loading branch information
sad270 authored Oct 25, 2024
1 parent 039764d commit eb7f2c6
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 eb7f2c6

Please sign in to comment.