From 7ea2be387ecfbb3fec08bb06c0e6292a42b30671 Mon Sep 17 00:00:00 2001 From: zzz <zzz@mail.i2p> Date: Tue, 8 Dec 2015 02:13:31 +0000 Subject: [PATCH] Better exception message, so it's in the router log --- core/java/src/net/i2p/util/I2PThread.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/java/src/net/i2p/util/I2PThread.java b/core/java/src/net/i2p/util/I2PThread.java index 3c08e3639c..196bae7d5a 100644 --- a/core/java/src/net/i2p/util/I2PThread.java +++ b/core/java/src/net/i2p/util/I2PThread.java @@ -90,6 +90,9 @@ public class I2PThread extends Thread { System.out.println("Check ulimit -u, /etc/security/limits.conf, or /proc/sys/kernel/threads-max"); } oom.printStackTrace(); + if (!(SystemVersion.isWindows() || SystemVersion.isAndroid())) + throw new RuntimeException("Thread could not be started, " + + "Check ulimit -u, /etc/security/limits.conf, or /proc/sys/kernel/threads-max", oom); throw new RuntimeException("Thread could not be started", oom); } } -- GitLab