1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-17 09:37:02 +00:00

fix: Note missing script is not an error (#575)

Signed-off-by: James Hillyerd <james@hillyerd.com>
This commit is contained in:
James Hillyerd
2025-07-27 11:33:04 -07:00
committed by GitHub
parent 273c6a5dbd
commit c3a8eb8e3b

View File

@@ -38,7 +38,7 @@ func New(conf config.Lua, extHost *extension.Host) (*Host, error) {
// Pre-load, parse, and compile script. // Pre-load, parse, and compile script.
if fi, err := os.Stat(scriptPath); err != nil { if fi, err := os.Stat(scriptPath); err != nil {
logger.Info().Msg("Script file not found") logger.Info().Msg("Lua script file not found (this is not an error)")
return nil, ErrNoScript return nil, ErrNoScript
} else if fi.IsDir() { } else if fi.IsDir() {
return nil, fmt.Errorf("lua script %v is a directory", scriptPath) return nil, fmt.Errorf("lua script %v is a directory", scriptPath)