mirror of https://github.com/Hilbis/Hilbish
fix(cd): use correct var
parent
c12fd1a8b4
commit
80acd0857d
|
@ -91,7 +91,7 @@ func freaddir(L *lua.LState) int {
|
|||
|
||||
dirEntries, err := os.ReadDir(dir)
|
||||
if err != nil {
|
||||
L.RaiseError(err.Error() + ": " + path)
|
||||
L.RaiseError(err.Error() + ": " + dir)
|
||||
return 0
|
||||
}
|
||||
for _, entry := range dirEntries {
|
||||
|
|
Loading…
Reference in New Issue