summaryrefslogtreecommitdiff
path: root/lstrlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lstrlib.c')
-rw-r--r--lstrlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lstrlib.c b/lstrlib.c
index b6eda2cf..ab04b5d5 100644
--- a/lstrlib.c
+++ b/lstrlib.c
@@ -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 {
185static int check_capture (MatchState *ms, int l) { 185static 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