Better exception message

This commit is contained in:
Trustin Lee 2014-01-13 23:30:32 +09:00
parent 17c0722862
commit b165134044
2 changed files with 2 additions and 2 deletions

View File

@ -256,7 +256,7 @@ public final class Bootstrap extends AbstractBootstrap<Bootstrap, Channel> {
throw new IllegalStateException("handler not set"); throw new IllegalStateException("handler not set");
} }
if (channelFactory == null) { if (channelFactory == null) {
throw new IllegalStateException("factory not set"); throw new IllegalStateException("channel or channelFactory not set");
} }
return this; return this;
} }

View File

@ -242,7 +242,7 @@ public final class ServerBootstrap extends AbstractBootstrap<ServerBootstrap, Se
childGroup = group(); childGroup = group();
} }
if (channelFactory == null) { if (channelFactory == null) {
throw new IllegalStateException("factory not set"); throw new IllegalStateException("channel or channelFactory not set");
} }
return this; return this;
} }