Just pointing to epoll unavailabality reason is not enough, we
should also explain that the user can get PCEP working without
TCP/MD5 keys.
JIRA: BGPCEP-916
Change-Id: I95d5d087f99a29a6d823041e40a841b2f0367be8
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
if (Epoll.isAvailable()) {
b.option(EpollChannelOption.TCP_MD5SIG, this.keys);
} else {
- throw new UnsupportedOperationException(Epoll.unavailabilityCause().getCause());
+ throw new UnsupportedOperationException("Setting TCP-MD5 signatures is not supported",
+ Epoll.unavailabilityCause().getCause());
}
}