Skip to content

Commit 039a14d

Browse files
committed
fix: clarify unknown action error
1 parent da821d2 commit 039a14d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/lib/web.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export async function toInternalRequest(
3737

3838
const action = actions.find((a) => pathname.includes(a))
3939
if (!action) {
40-
throw new UnknownAction("Cannot detect action.")
40+
throw new UnknownAction(`Cannot detect action in pathname (${pathname}).`)
4141
}
4242

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

0 commit comments

Comments
 (0)