Skip to content

Commit

Permalink
log initialization errors
Browse files Browse the repository at this point in the history
  • Loading branch information
fralonra committed Oct 26, 2023
1 parent deaa979 commit 17bceb1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ mod window_icon;
fn main() {
env_logger::init();

let app = app::App::new().unwrap();

app.run();
match app::App::new() {
Ok(app) => app.run(),
Err(err) => {
log::error!("Failed to initialize WgShadertoy: {}", err);
}
}
}

0 comments on commit 17bceb1

Please sign in to comment.