Add log of nvim path in case of error

This commit is contained in:
daa84 2017-04-27 18:49:09 +03:00
parent d335d550a5
commit 1b1af1f8d8
1 changed files with 7 additions and 1 deletions

View File

@ -72,7 +72,13 @@ pub fn initialize(shell: Arc<UiMutex<shell::State>>,
external_popup: bool)
-> Result<Neovim> {
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()?
};