Skip to content

Commit dd1aa78

Browse files
committed
fix(health): unlikely case when fzf --version breaks
1 parent c40c451 commit dd1aa78

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lua/fzf-lua/_health.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,10 @@ function M.check()
7272
end
7373

7474
if vim.fn.executable("fzf") == 1 then
75-
local version = utils.fzf_version()
76-
if version[1] < 1 and version[2] < 53 then
75+
local version, rc, err = utils.fzf_version()
76+
if not version then
77+
error(string.format("'fzf --version' failed with error %s: %s", rc, err))
78+
elseif version[1] < 1 and version[2] < 53 then
7779
warn("'fzf' `>= 0.53` is recommended.")
7880
end
7981
end

0 commit comments

Comments
 (0)