Skip to content

Commit 37f749e

Browse files
committed
fixed typos in lua exception messages.
1 parent 2ac3aa2 commit 37f749e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/ngx_http_lua_regex.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ ngx_http_lua_ngx_re_gmatch_iterator(lua_State *L)
838838
}
839839

840840
if (r != ctx->request || r->pool != ctx->request->pool) {
841-
return luaL_error(L, "attemp to use ngx.re.gmatch iterator in a "
841+
return luaL_error(L, "attempt to use ngx.re.gmatch iterator in a "
842842
"request that did not create it");
843843
}
844844

src/ngx_http_lua_shdict.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ ngx_http_lua_shdict_set_helper(lua_State *L, int flags)
592592
key.data = (u_char *) luaL_checklstring(L, 2, &key.len);
593593

594594
if (key.len == 0) {
595-
return luaL_error(L, "attemp to use empty keys");
595+
return luaL_error(L, "attempt to use empty keys");
596596
}
597597

598598
if (key.len > 65535) {
@@ -884,7 +884,7 @@ ngx_http_lua_shdict_incr(lua_State *L)
884884
key.data = (u_char *) luaL_checklstring(L, 2, &key.len);
885885

886886
if (key.len == 0) {
887-
return luaL_error(L, "attemp to use empty keys");
887+
return luaL_error(L, "attempt to use empty keys");
888888
}
889889

890890
if (key.len > 65535) {

src/ngx_http_lua_util.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1773,7 +1773,7 @@ ngx_http_lua_process_args_option(ngx_http_request_t *r, lua_State *L,
17731773
lua_pushnil(L);
17741774
while (lua_next(L, table) != 0) {
17751775
if (lua_type(L, -2) != LUA_TSTRING) {
1776-
luaL_error(L, "attemp to use a non-string key in the "
1776+
luaL_error(L, "attempt to use a non-string key in the "
17771777
"\"args\" option table");
17781778
return;
17791779
}

0 commit comments

Comments
 (0)