From 6aedac35f285df0092314c12512bd1f11ba76775 Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Fri, 7 Nov 2025 12:29:25 +0100 Subject: [PATCH] :bug: Fix wasm erros when images are not found --- frontend/src/app/render_wasm/api.cljs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/render_wasm/api.cljs b/frontend/src/app/render_wasm/api.cljs index 4228d04251..b8120054c7 100644 --- a/frontend/src/app/render_wasm/api.cljs +++ b/frontend/src/app/render_wasm/api.cljs @@ -11,6 +11,7 @@ [app.common.data :as d] [app.common.data.macros :as dm] [app.common.files.helpers :as cfh] + [app.common.logging :as log] [app.common.math :as mth] [app.common.types.fills :as types.fills] [app.common.types.fills.impl :as types.fills.impl] @@ -315,7 +316,14 @@ (aset heap32 (+ offset 11) height) (h/call wasm/internal-module "_store_image_from_texture") - true)))))})) + true)))) + (rx/catch (fn [cause] + (log/error :hint "Could not fetch image" + :image-id image-id + :thumbnail? thumbnail? + :url url + :cause cause) + (rx/empty))))})) (defn- get-fill-images [leaf]