fix: error message too many open files (#432)
and buffer previewer still "erroring" out for builtin.buffers
This commit is contained in:
@@ -68,7 +68,10 @@ end
|
||||
|
||||
path.read_file_async = function(filepath, callback)
|
||||
vim.loop.fs_open(filepath, "r", 438, function(err_open, fd)
|
||||
assert(not err_open, err_open)
|
||||
if err_open then
|
||||
print("We tried to open this file but couldn't. We failed with following error message: " .. err_open)
|
||||
return
|
||||
end
|
||||
vim.loop.fs_fstat(fd, function(err_fstat, stat)
|
||||
assert(not err_fstat, err_fstat)
|
||||
if stat.type ~= 'file' then return callback('') end
|
||||
|
||||
Reference in New Issue
Block a user