We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d5ebc5 commit 518848bCopy full SHA for 518848b
2 files changed
src/main.rs
@@ -12,11 +12,11 @@ use flexi_logger::{
12
fn main() {
13
init_logger();
14
if let Err(e) = OmegaCode::run() {
15
- eprintln!("Application error: {}", e);
+ error!("Application error: {}", e);
16
// Print full error chain
17
let mut current = e.source();
18
while let Some(cause) = current {
19
- eprintln!("Caused by: {}", cause);
+ error!("Caused by: {}", cause);
20
current = cause.source();
21
}
22
std::process::exit(1);
src/platform/mod.rs
@@ -36,7 +36,7 @@ macro_rules! app_dir {
36
match $crate::platform::get_platform_app_dir() {
37
Ok(dir) => dir,
38
Err(e) => {
39
- eprintln!("Failed to get app directory: {}", e);
+ error!("Failed to get app directory: {}", e);
40
41
42
0 commit comments