From 46cf768bd8eae7683ea468c092631a95cd17167c Mon Sep 17 00:00:00 2001 From: smanylov Date: Wed, 3 Dec 2025 14:28:37 +0700 Subject: [PATCH] logs --- src/app/actions/auth.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/app/actions/auth.ts b/src/app/actions/auth.ts index 34073a3..36f1910 100644 --- a/src/app/actions/auth.ts +++ b/src/app/actions/auth.ts @@ -113,12 +113,21 @@ export async function registration( let parsed = await response.json(); await createSession(parsed.token, email); } else { - throw new Error('Something went wrong. from server'); + throw new Error(` + Something went wrong. from server1 \n + ${API_BASE_URL}/api/auth/register \n + curr url \n + + `); } } catch (error) { if (error) { const errors: Record = {} - errors['server'] = 'Something went wrong. from server' + errors['server'] = ` + Something went wrong. from server22 \n + ${API_BASE_URL}/api/auth/register \n + error-- ${error} + ` return errors; } throw error;