mirror of
https://github.com/jagandeepbrar/lunasea.git
synced 2026-08-30 20:24:25 +00:00
fix(config): log restoration error after resetting the database to default
This commit is contained in:
@@ -21,12 +21,12 @@ class LunaConfig {
|
||||
LunaSeaDatabase.ENABLED_PROFILE.update(LunaProfile.list[0]);
|
||||
}
|
||||
} catch (error, stack) {
|
||||
await LunaDatabase().bootstrap(databaseCorruption: true);
|
||||
LunaLogger().error(
|
||||
'Failed to import configuration, resetting to default',
|
||||
error,
|
||||
stack,
|
||||
);
|
||||
LunaDatabase().bootstrap(databaseCorruption: true);
|
||||
}
|
||||
|
||||
LunaState.reset(context);
|
||||
|
||||
Reference in New Issue
Block a user