#2811: Shorten "Cannot request protocol" exception

This commit is contained in:
md_5 2020-05-10 09:35:19 +10:00
parent 727281e69e
commit eeb3c6d3bf

View File

@ -344,7 +344,7 @@ public class InitialHandler extends PacketHandler implements PendingConnection
}
break;
default:
throw new IllegalArgumentException( "Cannot request protocol " + handshake.getRequestedProtocol() );
throw new QuietException( "Cannot request protocol " + handshake.getRequestedProtocol() );
}
}