Better exception message
This commit is contained in:
parent
17c0722862
commit
b165134044
@ -256,7 +256,7 @@ public final class Bootstrap extends AbstractBootstrap<Bootstrap, Channel> {
|
||||
throw new IllegalStateException("handler not set");
|
||||
}
|
||||
if (channelFactory == null) {
|
||||
throw new IllegalStateException("factory not set");
|
||||
throw new IllegalStateException("channel or channelFactory not set");
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
@ -242,7 +242,7 @@ public final class ServerBootstrap extends AbstractBootstrap<ServerBootstrap, Se
|
||||
childGroup = group();
|
||||
}
|
||||
if (channelFactory == null) {
|
||||
throw new IllegalStateException("factory not set");
|
||||
throw new IllegalStateException("channel or channelFactory not set");
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user