Skip to content

Commit

Permalink
console.log on turnstyle errors
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewheberle committed Jan 8, 2024
1 parent 56cd1f4 commit 715504d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export async function HandlePost(context: EventContext<Env, null, null>) {

if (!outcome.success) {
let message = `Invalid turnstile response`
console.log(message)
console.log(message, outcome["error-codes"])
return JSONResponse(message, 400)
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "email-service",
"version": "0.9.1",
"version": "0.9.2",
"author": "Andrew Heberle <[email protected]>",
"description": "Handle form submissions via Cloudflare Pages using a Pages Function",
"license": "MIT",
Expand Down

0 comments on commit 715504d

Please sign in to comment.