From b1a2445d59a28048e553078cea8171f1048bbd8d Mon Sep 17 00:00:00 2001
From: cgeek <cem.moreau@gmail.com>
Date: Wed, 14 Jun 2017 11:11:28 +0200
Subject: [PATCH] [fix] duniter/duniter#997

---
 run.js | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/run.js b/run.js
index 87dc365..f0416e7 100644
--- a/run.js
+++ b/run.js
@@ -7,6 +7,13 @@ if (process.argv.length === 2) {
   process.argv.push('direct_webstart');
 }
 
+process.on('uncaughtException', (err) => {
+  // Dunno why this specific exception is not caught
+  if (err.code !== "EADDRNOTAVAIL" && err.code !== "EINVAL" && err.code !== "ENOENT") {
+    process.exit(2);
+  }
+})
+
 const stack = require('duniter').statics.autoStack([{
   name: 'duniter-ui',
   required: require('./index')
-- 
GitLab