From 02e470b317b6c154d9a0225722b16bf59dd414c4 Mon Sep 17 00:00:00 2001 From: electria Date: Thu, 2 Jul 2026 15:15:26 -0700 Subject: [PATCH] fix: display any errors that occur on start --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index c02ff95..1407b5f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -29,7 +29,7 @@ impl State { fn new() -> (Self, Task) { let mut state = State::default(); - env::args().nth(1).and_then(|path| state.load_image(path)); + state.error = env::args().nth(1).and_then(|path| state.load_image(path)); let allocate_image = state.allocate_image(); (state, allocate_image)