Don't unwrap exception manually

This commit is contained in:
Dean Herbert 2019-06-10 16:02:49 +09:00
parent e19f4935c3
commit f31b19e0d7

View File

@ -172,8 +172,7 @@ namespace osu.Game.Database
} }
else else
{ {
var e = t.Exception.InnerException ?? t.Exception; Logger.Error(t.Exception, $@"Could not import ({Path.GetFileName(path)})");
Logger.Error(e, $@"Could not import ({Path.GetFileName(path)})");
} }
}, TaskContinuationOptions.NotOnCanceled))); }, TaskContinuationOptions.NotOnCanceled)));