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

luahost: use sentinel ErrNoScript (#490)

Signed-off-by: James Hillyerd <james@hillyerd.com>
This commit is contained in:
James Hillyerd
2024-02-16 14:16:17 -08:00
committed by GitHub
parent 8adae023dc
commit def3e88651
2 changed files with 6 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ func FullAssembly(conf *config.Root) (*Services, error) {
// Configure extensions.
extHost := extension.NewHost()
luaHost, err := luahost.New(conf.Lua, extHost)
if err != nil {
if err != nil && err != luahost.ErrNoScript {
return nil, err
}