Skip to content

Commit

Permalink
feat: add errorMessage to screenshot api
Browse files Browse the repository at this point in the history
  • Loading branch information
junseublim committed Dec 18, 2024
1 parent 1e7d860 commit 8d1d558
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/board/[boardId]/_components/PolaroidList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ const PolaroidList = () => {
})

if (!res.ok) {
throw new Error('Failed to take screenshot')
console.log(res)
throw new Error(`Failed to take screenshot ${res.body}`)
}

const blob = await res.blob()
Expand Down

0 comments on commit 8d1d558

Please sign in to comment.