From 3e71ab50870db524f7e17aa9d2042da52b15ad63 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Wed, 26 Dec 2018 14:04:34 +0200 Subject: Implemented integration IJobRunsLogger. Implemented DEBUG/RELEASE JsonController. Implemented Local/Remote machine studio setting. --- Software/Visual_Studio/Tango.Web/Controllers/JsonController.cs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Software/Visual_Studio/Tango.Web/Controllers') diff --git a/Software/Visual_Studio/Tango.Web/Controllers/JsonController.cs b/Software/Visual_Studio/Tango.Web/Controllers/JsonController.cs index 9d9016d5a..1fae9cccc 100644 --- a/Software/Visual_Studio/Tango.Web/Controllers/JsonController.cs +++ b/Software/Visual_Studio/Tango.Web/Controllers/JsonController.cs @@ -65,7 +65,11 @@ namespace Tango.Web.Controllers code = HttpStatusCode.Unauthorized; } +#if DEBUG throw new HttpResponseException(Request.CreateErrorResponse(code, ex.ToString())); +#else + throw new HttpResponseException(Request.CreateErrorResponse(code, ex.FlattenMessage())); +#endif } } } -- cgit v1.3.1