mhinz / neovim-remote

:ok_hand: Support for --remote and friends.
MIT License
1.75k stars 83 forks source link

Dealing with AccessDenied exception on process connections #119

Closed FractalWire closed 5 years ago

FractalWire commented 5 years ago

In a multi-user context, there might be an exception occuring when calling --servername option.

Step to reproduce:

Try starting a nvim session with root (for example) and with the current user.

An exception will then occurs when using --servername option.

This PR catches the raised exception and let the user know that the connections was denied.

mhinz commented 5 years ago

Thanks! ✨