Skip to content

Commit

Permalink
don't wrap error in new Error
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwelly-stripe committed Oct 23, 2023
1 parent e917010 commit 157d06c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export const loadScript = (
// set stripePromise to null on error
return stripePromise
.catch((error) => {
throw new Error(error);
throw error;
})
.then((stripePromise = null));
};
Expand Down

0 comments on commit 157d06c

Please sign in to comment.