aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Web
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-12-26 14:04:34 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-12-26 14:04:34 +0200
commit3e71ab50870db524f7e17aa9d2042da52b15ad63 (patch)
treee1bee015a2ce129316bbc30a0ff6466f239b33fd /Software/Visual_Studio/Tango.Web
parenta756bdd61609c9bd093e81d1e2a9edf6bd912882 (diff)
downloadTango-3e71ab50870db524f7e17aa9d2042da52b15ad63.tar.gz
Tango-3e71ab50870db524f7e17aa9d2042da52b15ad63.zip
Implemented integration IJobRunsLogger.
Implemented DEBUG/RELEASE JsonController. Implemented Local/Remote machine studio setting.
Diffstat (limited to 'Software/Visual_Studio/Tango.Web')
-rw-r--r--Software/Visual_Studio/Tango.Web/Controllers/JsonController.cs4
1 files changed, 4 insertions, 0 deletions
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
}
}
}