2
2
zrcadlo https://github.com/Hilbis/Hilbish synchronizováno 2025-07-18 16:52:02 +00:00

fix: change luaErr to return string instead of code

Tento commit je obsažen v:
sammyette 2021-10-16 13:47:09 -04:00
rodič 3cafbe8c4f
revize 452335d84a
V databázi nebyl nalezen žádný známý klíč pro tento podpis
ID GPG klíče: 50EE40A2809851F5

Zobrazit soubor

@ -22,9 +22,8 @@ things, and acts an addition to the Lua standard library's I/O and fs functions.
return 1
}
func luaErr(L *lua.LState, code int) {
// TODO: Error with a table, with path and error code
L.Error(lua.LNumber(code), 2)
func luaErr(L *lua.LState, msg string) {
L.Error(lua.LString(msg), 2)
}
var exports = map[string]lua.LGFunction{