diff --git a/invokeai/frontend/web/src/features/ui/hooks/useCopyImageToClipboard.ts b/invokeai/frontend/web/src/features/ui/hooks/useCopyImageToClipboard.ts index cefbf3d14e..4b42a45e93 100644 --- a/invokeai/frontend/web/src/features/ui/hooks/useCopyImageToClipboard.ts +++ b/invokeai/frontend/web/src/features/ui/hooks/useCopyImageToClipboard.ts @@ -25,6 +25,9 @@ export const useCopyImageToClipboard = () => { try { const getImageBlob = async () => { const response = await fetch(image_url); + if (!response.ok) { + throw new Error(`Problem retrieving image data`); + } return await response.blob(); };