update eslint

This commit is contained in:
2026-03-25 18:09:47 +00:00
parent e26849283e
commit 7ea579df68
5 changed files with 33 additions and 51 deletions

View File

@@ -5,7 +5,7 @@ import { AtomicChange, DB_BACKEND, doNothingCallback } from "./backends.js";
export default class LocalDB extends DB_BACKEND {
#path = null;
#data = null;
#defaultuser = null;
//#defaultuser = null;
constructor (config) {
super();
@@ -13,7 +13,7 @@ export default class LocalDB extends DB_BACKEND {
try {
this.#path = path;
this.#load();
this.#defaultuser = global.config.defaultuser;
//this.#defaultuser = global.config.defaultuser;
}
catch {
console.log(`error: ${path} was not found. Please follow the directions in the README to initialize localdb.json.`);

View File

@@ -331,7 +331,7 @@ export function readJSONFile (path) {
return JSON.parse(readFileSync(path));
}
catch (e) {
console.log(`error: ${path} was not found.`);
console.log(`error opening ${path}: ${e}`);
exit(1);
}
};