1
0
mirror of https://github.com/laurent22/joplin.git synced 2026-05-22 09:05:38 +02:00

Started support for onedrive tests

This commit is contained in:
Laurent Cozic
2017-07-26 21:00:16 +01:00
parent 3fad338e28
commit 971c3e12dc
3 changed files with 26 additions and 5 deletions
+5 -1
View File
@@ -245,7 +245,11 @@ class JoplinDatabase extends Database {
// Will throw if the database has not been created yet, but this is handled below
versionRow = await this.selectOne('SELECT * FROM version LIMIT 1');
} catch (error) {
console.info(error);
if (error.message && (error.message.indexOf('no such table: version') >= 0)) {
// Ignore
} else {
console.info(error);
}
}
const version = !versionRow ? 0 : versionRow.version;