diff --git a/runtime/lua/man.lua b/runtime/lua/man.lua index c6b05d1412..61950f184e 100644 --- a/runtime/lua/man.lua +++ b/runtime/lua/man.lua @@ -9,9 +9,7 @@ local M = {} --- @return string local function system(cmd, silent, env) if vim.fn.executable(cmd[1]) == 0 then - error(string.format('not found: "%s"', cmd[1]), 0) - elseif vim.uv.fs_access(cmd[1], 'X') then - error(string.format('not executable : "%s"', cmd[1]), 0) + error(string.format('executable not found: "%s"', cmd[1]), 0) end local r = vim.system(cmd, { env = env, timeout = 10000 }):wait()