From 452335d84a04949daffaf2d1ecac6e6acb85c40a Mon Sep 17 00:00:00 2001 From: sammyette <38820196+TorchedSammy@users.noreply.github.com> Date: Sat, 16 Oct 2021 13:47:09 -0400 Subject: [PATCH] fix: change luaErr to return string instead of code --- golibs/fs/fs.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/golibs/fs/fs.go b/golibs/fs/fs.go index 2ab851a..e607774 100644 --- a/golibs/fs/fs.go +++ b/golibs/fs/fs.go @@ -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{