fix: add err msg for rag service (#1354)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user