Skip to content

Commit

Permalink
Form will throw the uncaught errors if form is nor valid.
Browse files Browse the repository at this point in the history
  • Loading branch information
shinde-rahul committed Apr 6, 2023
1 parent 425cdf0 commit 2b03415
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/bundles/CoreBundle/Controller/ThemeController.php
Expand Up @@ -82,6 +82,8 @@ public function indexAction(Request $request, ThemeHelperInterface $themeHelper,
);
}
}
} else {
$form->addError(new FormError($form->getErrors(true)));

Check warning on line 86 in app/bundles/CoreBundle/Controller/ThemeController.php

View check run for this annotation

Codecov / codecov/patch

app/bundles/CoreBundle/Controller/ThemeController.php#L86

Added line #L86 was not covered by tests
}
}
}
Expand Down

0 comments on commit 2b03415

Please sign in to comment.