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:
parent
d32059a7ba
commit
b805174143
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user