Better exception message

This commit is contained in:
Trustin Lee 2014-01-13 23:29:41 +09:00
parent 3373f83cbb
commit 237ba27499

View File

@ -202,7 +202,7 @@ public abstract class AbstractBootstrap<B extends AbstractBootstrap<B, C>, C ext
throw new IllegalStateException("group not set"); throw new IllegalStateException("group not set");
} }
if (channelFactory == null) { if (channelFactory == null) {
throw new IllegalStateException("factory not set"); throw new IllegalStateException("channel or channelFactory not set");
} }
return (B) this; return (B) this;
} }