1
0
mirror of https://github.com/chylex/.NET-Community-Toolkit.git synced 2025-04-10 11:15:45 +02:00

Grab Exception Message if no InnerException

This commit is contained in:
Michael Hawker MSFT (XAML Llama) 2019-10-22 17:46:55 -07:00 committed by GitHub
parent 03ce8524c9
commit a8a71d479d

View File

@ -130,11 +130,11 @@ public TResult Result
/// <summary>
/// Gets the error message of the task.
/// </summary>
public string ErrorMessage => InnerException?.Message;
public string ErrorMessage => InnerException?.Message ?? Exception.Message;
/// <summary>
/// PropertyChanged event.
/// </summary>
public event PropertyChangedEventHandler PropertyChanged;
}
}
}