1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 15:07:44 +08:00

Output the inner exception to the log when possible

This commit is contained in:
Dean Herbert 2017-10-20 14:33:35 +09:00
parent d32059a7ba
commit b805174143

View File

@ -172,7 +172,7 @@ namespace osu.Game
}
catch (MigrationFailedException e)
{
Logger.Log(e.ToString(), LoggingTarget.Database, LogLevel.Error);
Logger.Log((e.InnerException ?? e).ToString(), LoggingTarget.Database, LogLevel.Error);
Logger.Log("Migration failed! We'll be starting with a fresh database.", LoggingTarget.Database, LogLevel.Error);
// if we failed, let's delete the database and start fresh.