Added safter error handling

This commit is contained in:
STP
2023-11-20 23:37:55 -05:00
parent 91bda4a56f
commit 525fbaaef6
3 changed files with 51 additions and 31 deletions

View File

@@ -24,7 +24,9 @@ fn main() {
env_logger::init();
env::set_var("RUST_BACKTRACE", "1");
run();
if let Err(e) = run() {
println!("Error at runtime: {}", e);
};
}
fn log_error<E: Error + 'static>(method_name: &str, err: E) {