diff --git a/apps/www/actions/edit-in-v0.ts b/apps/www/actions/edit-in-v0.ts index 82d19ced06..47060232b6 100644 --- a/apps/www/actions/edit-in-v0.ts +++ b/apps/www/actions/edit-in-v0.ts @@ -34,6 +34,8 @@ export async function editInV0({ }) if (!response.ok) { + console.log(response.status, response.statusText) + if (response.status === 403) { throw new Error("Unauthorized") } @@ -43,6 +45,8 @@ export async function editInV0({ return await response.json() } catch (error) { + console.log(error) + if (error instanceof Error) { return { error: error.message } }