aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Logging/ExceptionLogItem.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/Tango.Logging/ExceptionLogItem.cs')
-rw-r--r--Software/Visual_Studio/Tango.Logging/ExceptionLogItem.cs25
1 files changed, 24 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Tango.Logging/ExceptionLogItem.cs b/Software/Visual_Studio/Tango.Logging/ExceptionLogItem.cs
index de8485249..d2a1a352d 100644
--- a/Software/Visual_Studio/Tango.Logging/ExceptionLogItem.cs
+++ b/Software/Visual_Studio/Tango.Logging/ExceptionLogItem.cs
@@ -29,7 +29,30 @@ namespace Tango.Logging
{
get
{
- return Exception.Message;
+ if (Exception is AggregateException)
+ {
+ try
+ {
+ String message = String.Empty;
+
+ if (Description != null)
+ {
+ message += Description + Environment.NewLine;
+ }
+
+ message += String.Join(Environment.NewLine, (Exception as AggregateException).InnerExceptions.Select(x => x.Message));
+
+ return message;
+ }
+ catch
+ {
+ return Exception.Message;
+ }
+ }
+ else
+ {
+ return Exception.Message;
+ }
}
set { }
}