Rust: Make new(), run() and show() report errors from the backend

Fixes #2198
This commit is contained in:
Olivier Goffart 2023-02-09 15:03:37 +01:00 committed by Olivier Goffart
parent e8ee468cc6
commit 6889dfa5f5
254 changed files with 519 additions and 398 deletions

View file

@ -76,9 +76,9 @@ pub fn main() {
#[cfg(all(debug_assertions, target_arch = "wasm32"))]
console_error_panic_hook::set_once();
let main_window = MainWindow::new();
let main_window = MainWindow::new().unwrap();
main_window.on_render_plot(render_plot);
main_window.run();
main_window.run().unwrap();
}