mirror of https://github.com/Hilbis/Hilbish
fix: change luaErr to return string instead of code
parent
3cafbe8c4f
commit
452335d84a
|
@ -22,9 +22,8 @@ things, and acts an addition to the Lua standard library's I/O and fs functions.
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
func luaErr(L *lua.LState, code int) {
|
func luaErr(L *lua.LState, msg string) {
|
||||||
// TODO: Error with a table, with path and error code
|
L.Error(lua.LString(msg), 2)
|
||||||
L.Error(lua.LNumber(code), 2)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var exports = map[string]lua.LGFunction{
|
var exports = map[string]lua.LGFunction{
|
||||||
|
|
Loading…
Reference in New Issue