diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-10-29 15:08:39 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-10-29 15:08:39 +0200 |
| commit | 5bf030a1137f09e9d9898c8a837e49a1af0468f9 (patch) | |
| tree | 6535fef5affffe2b28bd87472c18383867510560 /Software/Visual_Studio/Tango.Logging/ExceptionLogItem.cs | |
| parent | 4973c8ff53c8758852f707af5cc7f4a6a82151e0 (diff) | |
| download | Tango-5bf030a1137f09e9d9898c8a837e49a1af0468f9.tar.gz Tango-5bf030a1137f09e9d9898c8a837e49a1af0468f9.zip | |
Improved some aspects of machine service and machine update.
Diffstat (limited to 'Software/Visual_Studio/Tango.Logging/ExceptionLogItem.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.Logging/ExceptionLogItem.cs | 25 |
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 { } } |
