Website Summary Files Commits Branches @commit @diff @stats
path: root / src / DevHive.Web / Controllers / ErrorController.cs
diff options
context:
space:
mode:
Commit8e11fbaa79ad6fba234e8162c5b291174ed31fbb (patch)
Author
 transtrike <transtrike@gmail.com>
2021-01-12 23:07:13 +0200
Committer
 transtrike <transtrike@gmail.com>
2021-01-12 23:07:13 +0200
Files284e015b6126ea714ccae916296c750a9d78cef1 /src/DevHive.Web/Controllers/ErrorController.cs
DevHive-8e11fbaa79ad6fba234e8162c5b291174ed31fbb.tar
DevHive-8e11fbaa79ad6fba234e8162c5b291174ed31fbb.tar.gz
DevHive-8e11fbaa79ad6fba234e8162c5b291174ed31fbb.zip
Parent65367fb0db7c62a10cf20738ee3e64e1659a1e76 (diff)
Fixed bugs with Lang features, User's GetById, Lang & User mappings; Added more UserService validations
1 files changed, 3 insertions, 0 deletions
-rw-r--r--src/DevHive.Web/Controllers/ErrorController.cs3
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);