On database error: Escape copies error and quits, additional logging

This commit is contained in:
Scott Nonnenberg
2022-05-03 12:06:47 -07:00
committed by GitHub
parent dad4fffb4e
commit 364d690cf3
2 changed files with 27 additions and 20 deletions

View File

@@ -595,6 +595,7 @@ async function removeDB(): Promise<void> {
);
}
logger.warn('removeDB: Removing all database files');
rimraf.sync(databaseFilePath);
rimraf.sync(`${databaseFilePath}-shm`);
rimraf.sync(`${databaseFilePath}-wal`);