Skip to content

Commit bda7284

Browse files
Update src/ngx_http_lua_socket_tcp.c
change the return reminder Co-authored-by: lijunlong <lijunlong@openresty.com>
1 parent 73ed3ae commit bda7284

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ngx_http_lua_socket_tcp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@ ngx_http_lua_socket_tcp_bind(lua_State *L)
874874
if (n == 3) {
875875
if (!lua_isnumber(L, 3)) {
876876
lua_pushnil(L);
877-
lua_pushliteral(L, "bad port number: need int type");
877+
lua_pushliteral(L, "expecting port to be a number but got %s", xxxx);
878878
return 2;
879879
}
880880

0 commit comments

Comments
 (0)