@@ -33,9 +33,12 @@ |
||
| 33 | 33 | |
| 34 | 34 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
| 35 | 35 | { |
| 36 | - try { |
|
| 36 | + try |
|
| 37 | + { |
|
| 37 | 38 | return $handler->handle($request); |
| 38 | - } catch (ValidationException $e) { |
|
| 39 | + } |
|
| 40 | + catch (ValidationException $e) |
|
| 41 | + { |
|
| 39 | 42 | return $this->renderErrors->render($e->errors, $e->context); |
| 40 | 43 | } |
| 41 | 44 | } |