Skip to content

Commit 98986d4

Browse files
committed
add response from API to error message
1 parent d0ce150 commit 98986d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/donate/checkout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export const getServerSideProps: GetServerSideProps<
7373
},
7474
}
7575
}
76-
throw new Error("Invalid response from server")
76+
throw new Error("Invalid response from server: " + JSON.stringify(body))
7777
} catch (error) {
7878
console.error("Error with checkout:", error)
7979
return {

0 commit comments

Comments
 (0)