Website Summary Files Commits Branches @commit @diff @stats
path: root / src / DevHive.Web / Controllers / ErrorController.cs
diff options
context:
space:
mode:
Commit4b2ed70d3693aef5918bb253bdacdf91c200e350 (patch)
Author
 transtrike <transtrike@gmail.com>
2020-12-15 20:03:29 +0200
Committer
 transtrike <transtrike@gmail.com>
2020-12-15 20:03:29 +0200
Files801b41d4429b27dd0284f5a02839837c8f3d1993 /src/DevHive.Web/Controllers/ErrorController.cs
DevHive-4b2ed70d3693aef5918bb253bdacdf91c200e350.tar
DevHive-4b2ed70d3693aef5918bb253bdacdf91c200e350.tar.gz
DevHive-4b2ed70d3693aef5918bb253bdacdf91c200e350.zip
Parentfb8d06ecb1d38e1430902342f75bd135db44dafa (diff)
Parenta25be34029e27577d51c5cf1b41010f55fc70ba3 (diff)
Merge branch 'dev' of github.com:Team-Kaleidoscope/DevHive into dev
1 files changed, 3 insertions, 5 deletions
-rw-r--r--src/DevHive.Web/Controllers/ErrorController.cs8
diff --git a/src/DevHive.Web/Controllers/ErrorController.cs b/src/DevHive.Web/Controllers/ErrorController.cs
index 560b0da..e84c19a 100644
--- a/src/DevHive.Web/Controllers/ErrorController.cs
+++ b/src/DevHive.Web/Controllers/ErrorController.cs
@@ -10,11 +10,9 @@ namespace DevHive.Web.Controllers
public class ErrorController
{
[HttpGet]
- public HttpStatusCode HttpError(HttpRequestException exception)
- {
- Console.WriteLine("WE HERE, BOIIIIIII");
-
- return HttpStatusCode.OK;
+ public HttpStatusCode Error(HttpRequestException exception)
+ {
+ return BadRequest(exception)
}
}
}