diff --git a/src/project.rs b/src/project.rs index a442e11..863efba 100644 --- a/src/project.rs +++ b/src/project.rs @@ -439,7 +439,7 @@ impl EntryStore { entries.insert(0, Entry::new_current_project(pwd)); } } else { - println!("Error get current directory"); + error!("Error get current directory"); } } err @ Err(_) => err.report_err(), diff --git a/src/settings.rs b/src/settings.rs index 6799e5a..11990bd 100644 --- a/src/settings.rs +++ b/src/settings.rs @@ -122,7 +122,7 @@ pub trait SettingsLoader: Sized + serde::Serialize { match load_err() { Ok(settings) => settings, Err(e) => { - println!("{}", e); + error!("{}", e); Self::empty() } } diff --git a/src/shell_dlg.rs b/src/shell_dlg.rs index 34b1249..be70d89 100644 --- a/src/shell_dlg.rs +++ b/src/shell_dlg.rs @@ -18,7 +18,7 @@ pub fn can_close_window(comps: &UiMutex, shell: &RefCell) -> } } Err(ref err) => { - println!("Error getting info from nvim: {}", err); + error!("Error getting info from nvim: {}", err); true } } @@ -58,7 +58,7 @@ fn show_not_saved_dlg(comps: &UiMutex, shell: &Shell, changed_bufs: let mut nvim = state.nvim().unwrap(); match nvim.command("wa") { Err(ref err) => { - println!("Error: {}", err); + error!("Error: {}", err); false } _ => true, @@ -87,11 +87,11 @@ fn get_changed_buffers(shell: &Shell) -> Result, CallError> { match buf.get_option(&mut nvim, "modified") { Ok(Value::Boolean(val)) => val, Ok(_) => { - println!("Value must be boolean"); + warn!("Value must be boolean"); false } Err(ref err) => { - println!( + error!( "Something going wrong while getting buffer option: {}", err ); @@ -101,7 +101,7 @@ fn get_changed_buffers(shell: &Shell) -> Result, CallError> { match buf.get_name(&mut nvim) { Ok(name) => name, Err(ref err) => { - println!( + error!( "Something going wrong while getting buffer name: {}", err );