fix: change luaErr to return string instead of code

pull/78/head
sammyette 2021-10-16 13:47:09 -04:00
parent 3cafbe8c4f
commit 452335d84a
No known key found for this signature in database
GPG Key ID: 50EE40A2809851F5
1 changed files with 2 additions and 3 deletions

View File

@ -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{