fix(config): log restoration error after resetting the database to default

This commit is contained in:
Jagandeep Brar
2022-08-21 16:19:48 -04:00
parent 52fd7fca0c
commit b02fe81df6

View File

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