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()? };