aboutsummaryrefslogtreecommitdiff
path: root/lstrlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lstrlib.c')
-rw-r--r--lstrlib.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lstrlib.c b/lstrlib.c
index e9c60c0f..dde868c0 100644
--- a/lstrlib.c
+++ b/lstrlib.c
@@ -1180,8 +1180,7 @@ static int str_format (lua_State *L) {
1180 break; 1180 break;
1181 } 1181 }
1182 default: { /* also treat cases 'pnLlh' */ 1182 default: { /* also treat cases 'pnLlh' */
1183 return luaL_error(L, "invalid option '%%%c' to 'format'", 1183 return luaL_error(L, "invalid conversion '%s' to 'format'", form);
1184 *(strfrmt - 1));
1185 } 1184 }
1186 } 1185 }
1187 lua_assert(nb < MAX_ITEM); 1186 lua_assert(nb < MAX_ITEM);