From 42349cb4cf6854e5a1f50c1ab55923f57cbd336b Mon Sep 17 00:00:00 2001 From: Benjamin Georgeault Date: Wed, 27 Apr 2022 10:08:37 +0200 Subject: [PATCH] Add previous exception to BadRequestHttpException on SwaggerUiController. Improve debug. --- Controller/SwaggerUiController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Controller/SwaggerUiController.php b/Controller/SwaggerUiController.php index c5a3201..5bacbbd 100644 --- a/Controller/SwaggerUiController.php +++ b/Controller/SwaggerUiController.php @@ -48,7 +48,7 @@ final class SwaggerUiController $advice = ' Since the area provided contains `.json`, the issue is likely caused by route priorities. Try switching the Swagger UI / the json documentation routes order.'; } - throw new BadRequestHttpException(sprintf('Area "%s" is not supported as it isn\'t defined in config.%s', $area, $advice)); + throw new BadRequestHttpException(sprintf('Area "%s" is not supported as it isn\'t defined in config.%s', $area, $advice), $e); } } }