Even better promise validation messages

This commit is contained in:
Trustin Lee 2013-07-19 09:38:25 +09:00
parent d5e202d755
commit 0653efcd75

View File

@ -821,7 +821,7 @@ final class DefaultChannelHandlerContext extends DefaultAttributeMap implements
"promise.channel does not match: %s (expected: %s)", promise.channel(), channel()));
}
if (promise.isDone()) {
throw new IllegalArgumentException("promise already done");
throw new IllegalArgumentException("promise already done: " + promise);
}
if (!allowUnsafe && promise instanceof VoidChannelPromise) {
throw new IllegalArgumentException(