aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Transport/Web
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-04-18 05:54:15 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-04-18 05:54:15 +0300
commit6e172dd3bc3e2388e532fd43381896f15abaed70 (patch)
tree37dfa0969c9a329ffc503034eda22be4e4168a6c /Software/Visual_Studio/Tango.Transport/Web
parent477b07b197242605f3fbfc65838dac3995736e13 (diff)
downloadTango-6e172dd3bc3e2388e532fd43381896f15abaed70.tar.gz
Tango-6e172dd3bc3e2388e532fd43381896f15abaed70.zip
Working on diagnostics.
Diffstat (limited to 'Software/Visual_Studio/Tango.Transport/Web')
-rw-r--r--Software/Visual_Studio/Tango.Transport/Web/WebTransportClient.cs14
1 files changed, 12 insertions, 2 deletions
diff --git a/Software/Visual_Studio/Tango.Transport/Web/WebTransportClient.cs b/Software/Visual_Studio/Tango.Transport/Web/WebTransportClient.cs
index 14b9a7562..4d68dbf59 100644
--- a/Software/Visual_Studio/Tango.Transport/Web/WebTransportClient.cs
+++ b/Software/Visual_Studio/Tango.Transport/Web/WebTransportClient.cs
@@ -103,6 +103,8 @@ namespace Tango.Transport.Web
}
catch (HttpRequestException ex)
{
+ bool handled = false;
+
try
{
String message = JObject.Parse(data).GetValue("Message").ToString();
@@ -134,11 +136,19 @@ namespace Tango.Transport.Web
throw new HttpRequestException(ex.Message + " " + message);
}
+ handled = true;
throw exception;
}
- catch
+ catch (Exception handledException)
{
- throw ex;
+ if (handled)
+ {
+ throw handledException;
+ }
+ else
+ {
+ throw ex;
+ }
}
}