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:
Dean Herbert 2018-06-15 13:38:42 +09:00
parent af4d4b529f
commit 4a19f22b3d
1 changed files with 1 additions and 19 deletions

View File

@ -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();
}
}