fix: add err msg for rag service (#1354)

This commit is contained in:
yetone
2025-02-23 01:55:27 +08:00
committed by GitHub
parent ea07d45c1c
commit 5744b1fde7

View File

@@ -68,7 +68,12 @@ function M.launch_rag_service()
openai_base_url,
image
)
vim.fn.system(cmd_)
local result_ = vim.fn.system(cmd_)
local exit_code = vim.v.shell_error
if exit_code ~= 0 then
Utils.error(string.format("failed to start rag service: %s", result_))
return false
end
Utils.debug(string.format("container %s started", container_name))
return true
end