Refactor ERROR_PATTERN in auto-boot-ollama-host.lua to simplify error message format
This commit is contained in:
@@ -19,7 +19,7 @@ local OLLAMA_HOST = getenv("OLLAMA_HOST", "192.168.222.12")
|
||||
local OLLAMA_PORT = tonumber(getenv("OLLAMA_PORT", "11434"))
|
||||
local ERROR_PATTERN = getenv(
|
||||
"ERROR_PATTERN",
|
||||
("Error: [ERROR] Document analysis failed: connect EHOSTUNREACH %s:%d"):format(OLLAMA_HOST, OLLAMA_PORT)
|
||||
("connect EHOSTUNREACH %s:%d"):format(OLLAMA_HOST, OLLAMA_PORT)
|
||||
)
|
||||
|
||||
-- Optional Wake-on-LAN
|
||||
|
||||
Reference in New Issue
Block a user