image/loading: Display first error, ignore second

Usually the first error is the relevant one. So show this one.

Why we get more than one error at all is a bit unclear.
This commit is contained in:
Sophie Herold 2024-02-29 14:21:26 +01:00
parent 8b4beadcd9
commit 296817abe4
2 changed files with 7 additions and 0 deletions

View file

@ -69,6 +69,7 @@ impl Svg {
let (wakeup, wakeup_resv) = mpsc::unbounded();
updater.clone().spawn_error_handled(async move {
log::trace!("Setting up SVG loader");
let mut loader = glycin::Loader::new(file);
#[cfg(feature = "disable-glycin-sandbox")]