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;