From b7827f1cae371b09f50bc5200f39e7b15edf484c Mon Sep 17 00:00:00 2001 From: tamaina Date: Sat, 6 May 2023 17:40:50 +0000 Subject: [PATCH] error --- packages/frontend/src/workers/draw-blurhash.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/frontend/src/workers/draw-blurhash.ts b/packages/frontend/src/workers/draw-blurhash.ts index 3c701584ce..6b5bb421f8 100644 --- a/packages/frontend/src/workers/draw-blurhash.ts +++ b/packages/frontend/src/workers/draw-blurhash.ts @@ -7,7 +7,8 @@ onmessage = (event) => { canvas = event.data.canvas; } if (!(canvas && 'hash' in event.data && typeof event.data.hash === 'string')) { - return; + console.error('Cannot draw blurhash without canvas and hash', canvas, event.data); + throw new Error('Cannot draw blurhash without canvas and hash'); } const width = event.data.width ?? 64; const height = event.data.height ?? 64;