Merge pull request #1986 from WedgeSama/master

Add previous exception to BadRequestHttpException on SwaggerUiController
This commit is contained in:
Guilhem Niot 2022-06-10 20:55:12 +02:00 committed by GitHub
commit 938b954a30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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