Prettify exception message
This commit is contained in:
parent
62ebe88981
commit
69a36b8bea
@ -212,7 +212,7 @@ public final class NioEventLoop extends SingleThreadEventLoop {
|
|||||||
*/
|
*/
|
||||||
public void setIoRatio(int ioRatio) {
|
public void setIoRatio(int ioRatio) {
|
||||||
if (ioRatio <= 0 || ioRatio > 100) {
|
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;
|
this.ioRatio = ioRatio;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user