aboutsummaryrefslogtreecommitdiff
path: root/src/index.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2022-11-23 15:08:51 +0100
committerGitHub <noreply@github.com>2022-11-23 15:08:51 +0100
commit855d83cdd1cc6397069c9df243f32bf210693fd6 (patch)
tree0db4bab6e26eb3fcb533957ffa25d585b4c52b51 /src/index.js
parentee7858c71f671cca7914482a86e62ba48cf36dce (diff)
parent3ddd971820dea6a0c4a25009484e86afbfe7eaf1 (diff)
downloadViper-855d83cdd1cc6397069c9df243f32bf210693fd6.tar.gz
Viper-855d83cdd1cc6397069c9df243f32bf210693fd6.zip
Merge branch 'main' into dupe-mods-localization
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/index.js b/src/index.js
index 02a7a60..ba08056 100644
--- a/src/index.js
+++ b/src/index.js
@@ -74,6 +74,11 @@ function start() {
ipcMain.on("installed-mod", (event, modname) => {send("installed-mod", modname)});
ipcMain.on("no-internet", () => {send("no-internet")});
+ process.on("uncaughtException", (err) => {
+ send("unknown-error", err);
+ console.error(err);
+ });
+
// install calls
ipcMain.on("install-from-path", (event, path) => {utils.mods.install(path)});
ipcMain.on("install-from-url", (event, url) => {utils.mods.installFromURL(url)});