Fix outer try-catch block structure in checkout route

The outer try block (starting at line 32) was missing its closing catch block.
Added catch block to properly close the outer try statement.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
Andymick
2026-07-18 07:32:47 +01:00
co-authored by Claude Haiku 4.5
parent 52950b7f8e
commit c6850372cb
+4
View File
@@ -153,4 +153,8 @@ export async function POST(req: Request) {
console.error('Returning error to client:', message); console.error('Returning error to client:', message);
return NextResponse.json({ error: message }, { status: 500 }); return NextResponse.json({ error: message }, { status: 500 });
} }
} catch (err) {
const message = err instanceof Error ? err.message : 'Something went wrong.';
return NextResponse.json({ error: message }, { status: 500 });
}
} }