diff options
author | Kirill Chibisov <contact@kchibisov.com> | 2020-04-12 04:27:09 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-12 04:27:09 +0300 |
commit | ab2db49af5467ec972e297259dd8c23022783347 (patch) | |
tree | c03f9150773668a5eacffb2e664dae7306245f0f /alacritty/src/main.rs | |
parent | f14d24542c3ceda3b508c707eb79cf2fe2a04bd1 (diff) | |
download | r-alacritty-ab2db49af5467ec972e297259dd8c23022783347.tar.gz r-alacritty-ab2db49af5467ec972e297259dd8c23022783347.tar.bz2 r-alacritty-ab2db49af5467ec972e297259dd8c23022783347.zip |
Log critical errors with error! instead of println!
Diffstat (limited to 'alacritty/src/main.rs')
-rw-r--r-- | alacritty/src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alacritty/src/main.rs b/alacritty/src/main.rs index ca912943..6bb9041c 100644 --- a/alacritty/src/main.rs +++ b/alacritty/src/main.rs @@ -32,7 +32,7 @@ use std::sync::Arc; #[cfg(target_os = "macos")] use dirs; use glutin::event_loop::EventLoop as GlutinEventLoop; -use log::info; +use log::{error, info}; #[cfg(windows)] use winapi::um::wincon::{AttachConsole, FreeConsole, ATTACH_PARENT_PROCESS}; @@ -113,7 +113,7 @@ fn main() { // Run alacritty if let Err(err) = run(window_event_loop, config) { - println!("Alacritty encountered an unrecoverable error:\n\n\t{}\n", err); + error!("Alacritty encountered an unrecoverable error:\n\n\t{}\n", err); std::process::exit(1); } |