Skip to content
Snippets Groups Projects
Commit 850231c1 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[fix] In case of crash, display the error

parent 57249529
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,7 @@ if (process.argv.length === 2) {
process.on('uncaughtException', (err) => {
// Dunno why this specific exception is not caught
if (err.code !== "EADDRNOTAVAIL" && err.code !== "EINVAL" && err.code !== "ENOENT") {
console.error(err)
process.exit(2);
}
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment