Skip to content

Commit

Permalink
fix: clarify unknown action error
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsorban44 committed Apr 19, 2023
1 parent da821d2 commit 039a14d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/lib/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export async function toInternalRequest(

const action = actions.find((a) => pathname.includes(a))
if (!action) {
throw new UnknownAction("Cannot detect action.")
throw new UnknownAction(`Cannot detect action in pathname (${pathname}).`)
}

if (req.method !== "GET" && req.method !== "POST") {
Expand Down

1 comment on commit 039a14d

@vercel
Copy link

@vercel vercel bot commented on 039a14d Apr 19, 2023

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.