Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
krocheck committed Sep 25, 2024
1 parent 4b7d02a commit b883d9b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions companion/lib/Data/StoreBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -412,15 +412,17 @@ export abstract class DataStoreBase {
if (!this.store) {
try {
this.store = new Database(':memory:')
showErrorMessage('Error starting companion', 'Could not write to database file. Companion is running in RAM and will not be saved upon exiting.')
showErrorMessage(
'Error starting companion',
'Could not write to database file. Companion is running in RAM and will not be saved upon exiting.'
)
console.error('Could not load database file')
this.create()
this.loadDefaults()
} catch (e: any) {
showErrorMessage('Error starting companion', 'Could not create a functional database. Exiting...')
console.error('Could not load database file. Exiting...')
registry?.exit(true, false)

}
}
}
Expand Down

0 comments on commit b883d9b

Please sign in to comment.