diff --git a/run.js b/run.js index 87dc365734a96be12d8f7e218d77c1155a1d0aad..f0416e7c5757eb465abe4fa9577e228183746ed0 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')