diff --git a/.DS_Store b/.DS_Store index 024f823..715b091 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/index.js b/index.js index 138c62e..c265b18 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,6 @@ -console.log("syncmessage started 2.0.5"); +console.log("syncmessage started 2.0.6"); -const APP_VERSION = "2.0.5"; +const APP_VERSION = "2.0.6"; // External Modules const sqlite = require("better-sqlite3"); @@ -675,9 +675,12 @@ const syncButtonEvent = async() => { try { await writeAllDatabaseFiles(); - + } catch(e) { errors.report(APP_VERSION + "Caught DB Write Error: " + e); + syncStarted = false; + document.getElementById("syncStatus").innerHTML = "Database Error, Please Try Again"; + return; } diff --git a/package.json b/package.json index 2dff412..d2950e8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "syncMessage-2", - "version": "2.0.5", + "version": "2.0.6", "description": "", "main": "main.js", "scripts": {