This commit is contained in:
smanylov
2025-12-03 14:28:37 +07:00
parent 3247b85cc0
commit 46cf768bd8
+11 -2
View File
@@ -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<string, string> = {}
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;