forked from I2P_Developers/i2p.i2p
Better exception message, so it's in the router log
This commit is contained in:
@ -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");
|
System.out.println("Check ulimit -u, /etc/security/limits.conf, or /proc/sys/kernel/threads-max");
|
||||||
}
|
}
|
||||||
oom.printStackTrace();
|
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);
|
throw new RuntimeException("Thread could not be started", oom);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user