Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions okrmng/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
mod cli;
mod defs;
mod config;
mod defs;

fn main() {
cli::run();
cli::run().unwrap_or_else(|e| {
for c in e.chain() {
eprintln!("{c:#?}");
}
eprintln!("{:#?}", e.backtrace());
});
}
19 changes: 14 additions & 5 deletions oukaro/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
mod config;
mod defs;
mod utils;

use std::{io::Write, path::Path};

use anyhow::Result;
Expand All @@ -9,11 +13,7 @@ use crate::{
utils::{dir_copys, find_data_path, mount_overlyfs},
};

mod config;
mod defs;
mod utils;

fn main() -> Result<()> {
fn run() -> Result<()> {
let mut builder = Builder::new();
builder.format(|buf, record| {
let local_time = chrono::Local::now();
Expand Down Expand Up @@ -60,3 +60,12 @@ fn main() -> Result<()> {
inotify.read_events_blocking(&mut [0; 1024])?;
}
}

fn main() {
run().unwrap_or_else(|e| {
for c in e.chain() {
eprintln!("{c:#?}");
}
eprintln!("{:#?}", e.backtrace());
})
}