fix(logging): update error detail message in GlobalExceptionHandler to provide a generic response
This commit is contained in:
@@ -19,7 +19,7 @@ internal sealed class GlobalExceptionHandler(ILogger<GlobalExceptionHandler> log
|
|||||||
{
|
{
|
||||||
Status = StatusCodes.Status500InternalServerError,
|
Status = StatusCodes.Status500InternalServerError,
|
||||||
Title = "Server Error",
|
Title = "Server Error",
|
||||||
Detail = exception.Message,
|
Detail = "An unexpected error occurred. Please try again later."
|
||||||
};
|
};
|
||||||
|
|
||||||
httpContext.Response.StatusCode = problemDetails.Status.Value;
|
httpContext.Response.StatusCode = problemDetails.Status.Value;
|
||||||
|
|||||||
Reference in New Issue
Block a user