Skip to content

Commit

Permalink
stormlicht: don't panic when failing to load resource
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwuelker committed Jul 28, 2024
1 parent fdfb529 commit e9dd216
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion stormlicht/src/chrome/gtk/web_view/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ impl WebView {
}

pub fn load(&self, url: &URL) {
self.imp().load_url(url).unwrap();
if let Err(error) = self.imp().load_url(url) {
log::error!("Failed to load {url}: {error:?}");
}
}

pub fn reload(&self) {
Expand Down

0 comments on commit e9dd216

Please sign in to comment.