Skip to content

Commit 17f1c49

Browse files
committed
chore: add error logging for failed createCheckout
1 parent 300a327 commit 17f1c49

File tree

3 files changed

+33
-13
lines changed

3 files changed

+33
-13
lines changed

example/package-lock.json

Lines changed: 31 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"dependencies": {
1414
"@convex-dev/polar": "file:..",
1515
"@polar-sh/checkout": "^0.1.11",
16-
"@polar-sh/sdk": "^0.32.16",
16+
"@polar-sh/sdk": "^0.34.9",
1717
"@radix-ui/react-dialog": "^1.1.6",
1818
"@radix-ui/react-icons": "^1.3.2",
1919
"@radix-ui/react-separator": "^1.1.1",

src/client/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ export class Polar<
147147
: { products: productIds }),
148148
});
149149
if (!checkout.value) {
150+
console.error(checkout);
150151
throw new Error("Checkout not created");
151152
}
152153
return checkout.value;

0 commit comments

Comments
 (0)