File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
lua/nvim-tree/actions/node Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change
1
+ local notify = require " nvim-tree.notify"
2
+
1
3
local M = {
2
4
config = {
3
5
is_windows = vim .fn .has " win32" == 1 or vim .fn .has " win32unix" == 1 ,
@@ -27,14 +29,13 @@ function M.fn(node)
27
29
process .stderr :close ()
28
30
process .handle :close ()
29
31
if code ~= 0 then
30
- process .errors = process .errors .. string.format (" NvimTree system_open: return code %d." , code )
31
- error (process .errors )
32
+ notify .warn (string.format (" system_open failed with return code %d: %s" , code , process .errors ))
32
33
end
33
34
end
34
35
)
35
36
table.remove (process .args )
36
37
if not process .handle then
37
- error ( " \n " .. process . pid .. " \n NvimTree system_open: failed to spawn process using ' " .. process .cmd .. " '. " )
38
+ notify . warn ( string.format ( " system_open failed to spawn command '%s': %s " , process .cmd , process . pid ) )
38
39
return
39
40
end
40
41
vim .loop .read_start (process .stderr , function (err , data )
You can’t perform that action at this time.
0 commit comments