miversen33 / netman.nvim

Neovim (Lua powered) Network Resource Manager
MIT License
333 stars 1 forks source link

Neo-tree integration not properly displaying "Permission Errors" with the ssh provider #138

Closed miversen33 closed 8 months ago

miversen33 commented 1 year ago

When attempting to open a remote location (directory or file it seems) that you do not have permission to open, the logs show the following (:Nmlogs)

[2023-03-01 10:54:28] [SID: cxiuxhfkhtccrlz] [Logger: provider] [Level: WARN]     -- ...share/nvim/lazy/netman.nvim/lua/netman/providers/ssh.lua:callback:1181  Unable to download $FILE {
  error = "scp: /$FILE: Permission denied",
  exit_code = 1
}
[2023-03-01 10:54:28] [SID: cxiuxhfkhtccrlz] [Logger: consumer] [Level: WARN]     -- ...re/nvim/lazy/netman.nvim/lua/netman/ui/neo-tree/init.lua:generate_node_children:904 Received error while trying to run read of uri: ssh://$FILE {}

This is useful, however the error presented to the user, not so much

Unable to read ssh://$SERVERNAME///$FILE, received error nil

We need to do better at how we display errors to the user, this error means literally nothing

miversen33 commented 8 months ago

Resolved