Skip to content

Commit

Permalink
Send settings file on crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Levminer committed Aug 8, 2022
1 parent cff2157 commit f4044ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ process.on("uncaughtException", async (error) => {
os: `${os.type()} ${os.arch()} ${os.release()}`,
stack: stack.clean(error.stack),
lang: app.getLocaleCountryCode(),
settings: fs.readFileSync(path.join(folder_path, "settings", "settings.json"), "utf-8"),
date: new Date(),
})
} catch (error) {
Expand Down

0 comments on commit f4044ed

Please sign in to comment.