Wrap any exception thrown in a LidarrStartupException to trigger the
existing bootloop code.
We have to catch the generic Exception class since FluentMigrator
rethrows all exceptions as a generic Exception.
thrownewCorruptDatabaseException("Database file: {0} is corrupt, restore from backup if available. See: https://github.com/Lidarr/Lidarr/wiki/FAQ#i-am-getting-an-error-database-disk-image-is-malformed",e,fileName);
thrownewCorruptDatabaseException("Database file: {0} is corrupt, restore from backup if available. See: https://github.com/Lidarr/Lidarr/wiki/FAQ#i-am-getting-an-error-database-disk-image-is-malformed",e,fileName);
}
}
catch(Exceptione)
{
thrownewLidarrStartupException(e,"Error creating main database");