From 0bc64999080fa143336c2eebac3f86f08e609039 Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Wed, 23 Nov 2022 15:49:26 +0100 Subject: [PATCH] improve error handling --- src/plugins/files/public/components/image/image.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/files/public/components/image/image.tsx b/src/plugins/files/public/components/image/image.tsx index 41f4a7ab6ed2d..d538ad2308040 100644 --- a/src/plugins/files/public/components/image/image.tsx +++ b/src/plugins/files/public/components/image/image.tsx @@ -97,6 +97,8 @@ export const Image = ({ src, url, alt, onLoad, onError, meta, ...rest }: Props) onError?.(ev); } else { // blurhash failed to load, consider it is loaded to start loading the full image + // eslint-disable-next-line no-console + console.warn(`Failed to load blurhash src`); setIsBlurHashLoaded(true); } }}