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:
parent
03ce8524c9
commit
a8a71d479d
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user