Skip to content

Commit

Permalink
Added error message to write database
Browse files Browse the repository at this point in the history
  • Loading branch information
subnub committed Aug 30, 2019
1 parent 3dab36b commit 4aa4921
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
Binary file modified .DS_Store
Binary file not shown.
9 changes: 6 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -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");
Expand Down Expand Up @@ -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;
}


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "syncMessage-2",
"version": "2.0.5",
"version": "2.0.6",
"description": "",
"main": "main.js",
"scripts": {
Expand Down

0 comments on commit 4aa4921

Please sign in to comment.