diff options
Diffstat (limited to 'lstrlib.c')
-rw-r--r-- | lstrlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstrlib.c,v 1.131 2006/04/12 20:13:52 roberto Exp roberto $ | 2 | ** $Id: lstrlib.c,v 1.132 2006/04/26 20:41:19 roberto Exp roberto $ |
3 | ** Standard library for string operations and pattern-matching | 3 | ** Standard library for string operations and pattern-matching |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -185,7 +185,7 @@ typedef struct MatchState { | |||
185 | static int check_capture (MatchState *ms, int l) { | 185 | static int check_capture (MatchState *ms, int l) { |
186 | l -= '1'; | 186 | l -= '1'; |
187 | if (l < 0 || l >= ms->level || ms->capture[l].len == CAP_UNFINISHED) | 187 | if (l < 0 || l >= ms->level || ms->capture[l].len == CAP_UNFINISHED) |
188 | return luaL_error(ms->L, "invalid capture index"); | 188 | return luaL_error(ms->L, "invalid capture index %%%d", l + 1); |
189 | return l; | 189 | return l; |
190 | } | 190 | } |
191 | 191 | ||