mirror of https://github.com/ppy/osu
Remove custom migration exception
This was hiding the true error message from ever hitting logs. Made to help disagnose #2711.
This commit is contained in:
parent
af4d4b529f
commit
4a19f22b3d
|
@ -181,24 +181,6 @@ public bool IsEnabled(LogLevel logLevel)
|
|||
}
|
||||
}
|
||||
|
||||
public void Migrate()
|
||||
{
|
||||
try
|
||||
{
|
||||
Database.Migrate();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
throw new MigrationFailedException(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public class MigrationFailedException : Exception
|
||||
{
|
||||
public MigrationFailedException(Exception exception)
|
||||
: base("sqlite-net migration failed", exception)
|
||||
{
|
||||
}
|
||||
public void Migrate() => Database.Migrate();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue