chore: change lua init errors to make more sense

insensitive-tab^2
TorchedSammy 2022-04-30 20:31:37 -04:00
parent 0642ddda36
commit c4eb3ad368
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 2 additions and 2 deletions

4
lua.go
View File

@ -51,14 +51,14 @@ func luaInit() {
// Add more paths that Lua can require from
err := util.DoString(l, "package.path = package.path .. " + requirePaths)
if err != nil {
fmt.Fprintln(os.Stderr, "Could not add preload paths! Libraries will be missing. This shouldn't happen.")
fmt.Fprintln(os.Stderr, "Could not add Hilbish require paths! Libraries will be missing. This shouldn't happen.")
}
err = util.DoFile(l, "nature/init.lua")
if err != nil {
err = util.DoFile(l, preloadPath)
if err != nil {
fmt.Fprintln(os.Stderr, "Missing preload file, builtins may be missing.")
fmt.Fprintln(os.Stderr, "Missing nature module, some functionality and builtins will be missing.")
}
}
}