From 1b1af1f8d8ae78b92c43f156db11febf3ceb5174 Mon Sep 17 00:00:00 2001 From: daa84 Date: Thu, 27 Apr 2017 18:49:09 +0300 Subject: [PATCH] Add log of nvim path in case of error --- src/nvim.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/nvim.rs b/src/nvim.rs index 64cbe50..6c7b6ba 100644 --- a/src/nvim.rs +++ b/src/nvim.rs @@ -72,7 +72,13 @@ pub fn initialize(shell: Arc>, external_popup: bool) -> Result { let session = if let Some(path) = nvim_bin_path { - Session::new_child_path(path)? + match Session::new_child_path(path) { + Err(e) => { + println!("Error execute {}", path); + return Err(From::from(e)); + } + Ok(s) => s, + } } else { Session::new_child()? };