Skip to content

Commit 4eca9f8

Browse files
authored
fix: form validations are by passed when an Exception is thrown (#1218)
fix: #1217
1 parent 030e482 commit 4eca9f8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Block/BlockServiceManager.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,10 @@ public function validate(ErrorElement $errorElement, BlockInterface $block): voi
149149
}
150150

151151
$this->inValidate = false;
152-
} catch (\Exception) {
152+
} catch (\Exception $exception) {
153153
$this->inValidate = false;
154+
155+
throw $exception;
154156
}
155157
}
156158

0 commit comments

Comments
 (0)