diff --git a/transport-native-epoll/src/main/c/netty_unix_socket.c b/transport-native-epoll/src/main/c/netty_unix_socket.c index e5f7aa3926..9ecd8b36df 100644 --- a/transport-native-epoll/src/main/c/netty_unix_socket.c +++ b/transport-native-epoll/src/main/c/netty_unix_socket.c @@ -300,7 +300,7 @@ int netty_unix_socket_getOption(JNIEnv* env, jint fd, int level, int optname, vo if (err == EBADF) { netty_unix_errors_throwClosedChannelException(env); } else { - netty_unix_errors_throwChannelExceptionErrorNo(env, "setsockopt() failed: ", err); + netty_unix_errors_throwChannelExceptionErrorNo(env, "getsockopt() failed: ", err); } } return rc;