Skip to content

Commit

Permalink
add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreymeng committed Sep 22, 2020
1 parent 36eeff8 commit c626d3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/join-classes-mailing-list.ts
Expand Up @@ -88,7 +88,7 @@ export default async function joinClassesMailingList(request: NowRequest, respon
}
})
} catch (error) {
console.log("INTERNAL ERROR")
console.log("INTERNAL ERROR", error)
console.log(error.response.data)
response.status(500).json({
success: false,
Expand Down
1 change: 1 addition & 0 deletions src/components/classes/EmailForm.tsx
Expand Up @@ -37,6 +37,7 @@ export default function EmailForm({ listName, tag, wide }: {
setEmail("");
}).catch(error => {
setSubmitting(false)
setAddedEmail(email);
console.log({ ...error })
if (error.response && error.response.data.code) {
if (error.response.data.code === "already_subscribed") {
Expand Down

1 comment on commit c626d3b

@vercel
Copy link

@vercel vercel bot commented on c626d3b Sep 22, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.