Skip to content

Commit

Permalink
chore: misc health updates
Browse files Browse the repository at this point in the history
  • Loading branch information
olimorris committed Feb 10, 2024
1 parent 6f29646 commit e192626
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lua/codecompanion/health.lua
Original file line number Diff line number Diff line change
Expand Up @@ -79,18 +79,18 @@ function M.check()
ok(fmt("%s installed", plugin.name))
else
if plugin.optional then
warn(fmt("Optional %s dependency not found", plugin.name))
warn(fmt("%s not found", plugin.name))
else
error(fmt("Dependency %s not found", plugin.name))
error(fmt("%s not found", plugin.name))
end
end
end

for _, library in ipairs(M.libraries) do
if lib_available(library) then
ok(fmt("%s library installed", library))
ok(fmt("%s installed", library))
else
error(fmt("%s library not installed", library))
error(fmt("%s not installed", library))
end
end

Expand All @@ -99,9 +99,9 @@ function M.check()
ok(fmt("%s key found", env.name))
else
if env.optional then
warn(fmt("Optional %s key not found", env.name))
warn(fmt("%s key not found", env.name))
else
error(fmt("Key %s not found", env.name))
error(fmt("%s key not found", env.name))
end
end
end
Expand Down

0 comments on commit e192626

Please sign in to comment.