aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Web/Controllers/ErrorController.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/DevHive.Web/Controllers/ErrorController.cs')
-rw-r--r--src/DevHive.Web/Controllers/ErrorController.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/DevHive.Web/Controllers/ErrorController.cs b/src/DevHive.Web/Controllers/ErrorController.cs
index 67a83fe..c3f1e55 100644
--- a/src/DevHive.Web/Controllers/ErrorController.cs
+++ b/src/DevHive.Web/Controllers/ErrorController.cs
@@ -1,5 +1,6 @@
using System;
using System.Diagnostics;
+using AutoMapper;
using Microsoft.AspNetCore.Diagnostics;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
@@ -29,6 +30,8 @@ namespace DevHive.Web.Controllers
{
case ArgumentException _:
case InvalidOperationException _:
+ case AutoMapperMappingException _:
+ case AutoMapperConfigurationException _:
return MessageToObject(exception.Error.Message);
default:
return MessageToObject(null);