Better exception message, so it's in the router log

This commit is contained in:
zzz
2015-12-08 02:13:31 +00:00
parent 81cb62fda7
commit 7ea2be387e

View File

@ -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);
}
}