diff options
Diffstat (limited to 'src/lj_errmsg.h')
-rw-r--r-- | src/lj_errmsg.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lj_errmsg.h b/src/lj_errmsg.h index 7b0c15cd..dc015ef2 100644 --- a/src/lj_errmsg.h +++ b/src/lj_errmsg.h | |||
@@ -84,7 +84,7 @@ ERRDEF(IOCLFL, "attempt to use a closed file") | |||
84 | ERRDEF(IOSTDCL, "standard file is closed") | 84 | ERRDEF(IOSTDCL, "standard file is closed") |
85 | ERRDEF(OSUNIQF, "unable to generate a unique filename") | 85 | ERRDEF(OSUNIQF, "unable to generate a unique filename") |
86 | ERRDEF(OSDATEF, "field " LUA_QS " missing in date table") | 86 | ERRDEF(OSDATEF, "field " LUA_QS " missing in date table") |
87 | ERRDEF(STRDUMP, "cannot dump functions") | 87 | ERRDEF(STRDUMP, "unable to dump given function") |
88 | ERRDEF(STRSLC, "string slice too long") | 88 | ERRDEF(STRSLC, "string slice too long") |
89 | ERRDEF(STRPATB, "missing " LUA_QL("[") " after " LUA_QL("%f") " in pattern") | 89 | ERRDEF(STRPATB, "missing " LUA_QL("[") " after " LUA_QL("%f") " in pattern") |
90 | ERRDEF(STRPATC, "invalid pattern capture") | 90 | ERRDEF(STRPATC, "invalid pattern capture") |
@@ -119,7 +119,6 @@ ERRDEF(XLCOM, "unfinished long comment") | |||
119 | ERRDEF(XSTR, "unfinished string") | 119 | ERRDEF(XSTR, "unfinished string") |
120 | ERRDEF(XESC, "invalid escape sequence") | 120 | ERRDEF(XESC, "invalid escape sequence") |
121 | ERRDEF(XLDELIM, "invalid long string delimiter") | 121 | ERRDEF(XLDELIM, "invalid long string delimiter") |
122 | ERRDEF(XBCLOAD, "cannot load Lua bytecode") | ||
123 | ERRDEF(XTOKEN, LUA_QS " expected") | 122 | ERRDEF(XTOKEN, LUA_QS " expected") |
124 | ERRDEF(XJUMP, "control structure too long") | 123 | ERRDEF(XJUMP, "control structure too long") |
125 | ERRDEF(XSLOTS, "function or expression too complex") | 124 | ERRDEF(XSLOTS, "function or expression too complex") |
@@ -137,6 +136,10 @@ ERRDEF(XSYNTAX, "syntax error") | |||
137 | ERRDEF(XBREAK, "no loop to break") | 136 | ERRDEF(XBREAK, "no loop to break") |
138 | ERRDEF(XFOR, LUA_QL("=") " or " LUA_QL("in") " expected") | 137 | ERRDEF(XFOR, LUA_QL("=") " or " LUA_QL("in") " expected") |
139 | 138 | ||
139 | /* Bytecode reader errors. */ | ||
140 | ERRDEF(BCFMT, "cannot load incompatible bytecode") | ||
141 | ERRDEF(BCBAD, "cannot load malformed bytecode") | ||
142 | |||
140 | #if LJ_HASFFI | 143 | #if LJ_HASFFI |
141 | /* FFI errors. */ | 144 | /* FFI errors. */ |
142 | ERRDEF(FFI_INVTYPE, "invalid C type") | 145 | ERRDEF(FFI_INVTYPE, "invalid C type") |