Prettify exception message

This commit is contained in:
Norman Maurer 2014-02-13 06:46:51 +01:00
parent 62ebe88981
commit 69a36b8bea

View File

@ -212,7 +212,7 @@ public final class NioEventLoop extends SingleThreadEventLoop {
*/
public void setIoRatio(int ioRatio) {
if (ioRatio <= 0 || ioRatio > 100) {
throw new IllegalArgumentException("ioRatio: " + ioRatio + " (expected: 0 < ioRatio < 101)");
throw new IllegalArgumentException("ioRatio: " + ioRatio + " (expected: 0 < ioRatio <= 100)");
}
this.ioRatio = ioRatio;
}