Skip to content

Commit

Permalink
fix(config): log restoration error after resetting the database to de…
Browse files Browse the repository at this point in the history
…fault
  • Loading branch information
JagandeepBrar committed Aug 21, 2022
1 parent 52fd7fc commit b02fe81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/database/config.dart
Expand Up @@ -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);
Expand Down

0 comments on commit b02fe81

Please sign in to comment.