aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Transport
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-07-31 15:45:54 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-07-31 15:45:54 +0300
commite514b66b261c24257b149ecc6aaa52195509a2b5 (patch)
treeae889a11eb88c36e3b70ebe8d83b7e60bc80408b /Software/Visual_Studio/Tango.Transport
parenta56427605302770b4c0a71a5ff4da439300a2250 (diff)
downloadTango-e514b66b261c24257b149ecc6aaa52195509a2b5.tar.gz
Tango-e514b66b261c24257b149ecc6aaa52195509a2b5.zip
Working on external bridge.
Diffstat (limited to 'Software/Visual_Studio/Tango.Transport')
-rw-r--r--Software/Visual_Studio/Tango.Transport/ResponseErrorException.cs2
-rw-r--r--Software/Visual_Studio/Tango.Transport/TransporterBase.cs3
2 files changed, 2 insertions, 3 deletions
diff --git a/Software/Visual_Studio/Tango.Transport/ResponseErrorException.cs b/Software/Visual_Studio/Tango.Transport/ResponseErrorException.cs
index 81b162eac..3bb5023ca 100644
--- a/Software/Visual_Studio/Tango.Transport/ResponseErrorException.cs
+++ b/Software/Visual_Studio/Tango.Transport/ResponseErrorException.cs
@@ -24,7 +24,7 @@ namespace Tango.Transport
/// Initializes a new instance of the <see cref="ResponseErrorException{T}"/> class.
/// </summary>
/// <param name="error">The error.</param>
- public ResponseErrorException(MessageContainer container) : base("Response " + container.Type.ToString() + " returned with error " + container.Error.ToString() + " - " + container.ErrorMessage)
+ public ResponseErrorException(MessageContainer container) : base(String.Format("{0} has returned with an error ({1}).{2}{3}", container.Type.ToString(), container.Error.ToString(), Environment.NewLine, container.ErrorMessage))
{
Container = container;
}
diff --git a/Software/Visual_Studio/Tango.Transport/TransporterBase.cs b/Software/Visual_Studio/Tango.Transport/TransporterBase.cs
index a39371372..c67489007 100644
--- a/Software/Visual_Studio/Tango.Transport/TransporterBase.cs
+++ b/Software/Visual_Studio/Tango.Transport/TransporterBase.cs
@@ -943,8 +943,7 @@ namespace Tango.Transport
}
else
{
- LogManager.Log("Response has returned with error: " + container.Error.ToString(), LogCategory.Warning);
- request.SetException(new ResponseErrorException(container));
+ request.SetException(LogManager.Log(new ResponseErrorException(container), LogCategory.Warning));
}
}
catch (Exception ex)