aboutsummaryrefslogtreecommitdiff
path: root/src/index.js
diff options
context:
space:
mode:
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)});