Skip to content

Commit 7b929a7

Browse files
authored
Title returns "Server Error" in non-debug mode (#19665)
* Add isDebug check for Title * Error title has been added
1 parent af52e68 commit 7b929a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Umbraco.Cms.Api.Management/DependencyInjection/ApplicationBuilderExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ internal static IApplicationBuilder UseProblemDetailsExceptionHandling(this IApp
4343

4444
var response = new ProblemDetails
4545
{
46-
Title = exception.Message,
46+
Title = isDebug ? exception.Message : "Server Error",
4747
Detail = isDebug ? exception.StackTrace : null,
4848
Status = statusCode ?? StatusCodes.Status500InternalServerError,
4949
Instance = isDebug ? exception.GetType().Name : null,

0 commit comments

Comments
 (0)