mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
GenericExceptions print more detail
This commit is contained in:
parent
729b5128da
commit
367978967c
@ -12,9 +12,9 @@ namespace Wabbajack.Common.StatusFeed.Errors
|
||||
|
||||
public DateTime Timestamp { get; } = DateTime.Now;
|
||||
|
||||
public string ShortDescription => ExtraMessage ?? Exception?.Message;
|
||||
public string ShortDescription => ExtraMessage == null ? Exception?.Message : $"{ExtraMessage}: {Exception?.Message}";
|
||||
|
||||
public string ExtendedDescription => $"{ExtraMessage}: {Exception?.ToString()}";
|
||||
public string ExtendedDescription => ExtraMessage == null ? Exception?.ToString() : $"{ExtraMessage}: {Exception?.ToString()}";
|
||||
|
||||
public Exception Exception { get; }
|
||||
|
||||
|
@ -64,7 +64,7 @@ namespace Wabbajack.Common
|
||||
|
||||
public static T Log<T>(T msg) where T : IStatusMessage
|
||||
{
|
||||
LogToFile(msg.ShortDescription);
|
||||
LogToFile(msg.ExtendedDescription);
|
||||
LoggerSubj.OnNext(msg);
|
||||
return msg;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user