Add previous exception to BadRequestHttpException on SwaggerUiController. Improve debug.

This commit is contained in:
Benjamin Georgeault 2022-04-27 10:08:37 +02:00
parent 05d16e6814
commit 42349cb4cf

View File

@ -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.'; $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);
} }
} }
} }