Skip to content

Commit aecc234

Browse files
fix: cast error type
1 parent 87ea857 commit aecc234

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/astro/src/integration/tunnel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ export const POST: APIRoute = async ({ request }) => {
3434

3535
return Response(null, { status: 204 });
3636
} catch (error) {
37-
return Response.json({ message: error.message }, { status: 400 });
37+
return Response.json({ message: (error as Error).message }, { status: 400 });
3838
}
3939
};

0 commit comments

Comments
 (0)