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)