sec: do not return the error text to the user
All checks were successful
Build and Deploy Docker Container / build-and-deploy (push) Successful in 2m40s
.NET Test Pipeline / build-and-test (push) Successful in 1m18s

This commit is contained in:
nikita 2024-12-26 16:40:30 +03:00
parent 538f1d67c8
commit 07111b9b61

View File

@ -37,7 +37,7 @@ public class CustomExceptionHandlerMiddleware(RequestDelegate next, ILogger<Cust
Type = "https://tools.ietf.org/html/rfc9110#section-15.6.1",
Title = "An unexpected error occurred.",
Status = StatusCodes.Status500InternalServerError,
Detail = exception.Message,
Detail = "Please provide this traceId to the administrator for further investigation.",
Extensions = new Dictionary<string, object?>()
{
{ "traceId", traceId }