Skip to content

Commit

Permalink
[fix] database not found
Browse files Browse the repository at this point in the history
  • Loading branch information
hulxv committed Jun 2, 2022
1 parent 3452dbd commit 5c3a3f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/vnStat/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ export default class __vnStat__ {
let dbPath = `${
this.configurations().read()["DatabaseDir"]?.replace(/[",']/gi, "") ??
"/var/lib/vnstat/"
}/vnstatdd.db`;
}/vnstat.db`;
if (!existsSync(dbPath)) {
error("database filepath not found");
error(`${dbPath}: database filepath not found`);
new Communication().send("error-database-not-found");
return;
}
Expand Down

0 comments on commit 5c3a3f5

Please sign in to comment.