mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-12-27 19:07:28 +00:00
fix(system): avoid intentional RuntimeException in CrashController for local runs
Signed-off-by: Pranay <boddupranay8@gmail.com>
This commit is contained in:
parent
3e1ce239f4
commit
f44f87fe38
1 changed files with 1 additions and 2 deletions
|
|
@ -30,8 +30,7 @@ class CrashController {
|
|||
|
||||
@GetMapping("/oups")
|
||||
public String triggerException() {
|
||||
throw new RuntimeException(
|
||||
"Expected: controller used to showcase what " + "happens when an exception is thrown");
|
||||
return "redirect:/";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue