diff --git a/src/Web/Filters/ApiExceptionFilterAttribute.cs b/src/Web/Filters/ApiExceptionFilterAttribute.cs index f8c15df80..a7bd09ee5 100644 --- a/src/Web/Filters/ApiExceptionFilterAttribute.cs +++ b/src/Web/Filters/ApiExceptionFilterAttribute.cs @@ -171,6 +171,9 @@ private void HandleUnknownException(ExceptionContext context) Title = "An error occurred while processing your request.", Type = "https://tools.ietf.org/html/rfc7231#section-6.6.1" }; + #if DEBUG + details.Detail = $"{context.Exception.GetType().Name}: {context.Exception.Message}"; + #endif context.Result = new ObjectResult(details) {