logs
This commit is contained in:
+11
-2
@@ -113,12 +113,21 @@ export async function registration(
|
|||||||
let parsed = await response.json();
|
let parsed = await response.json();
|
||||||
await createSession(parsed.token, email);
|
await createSession(parsed.token, email);
|
||||||
} else {
|
} 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) {
|
} catch (error) {
|
||||||
if (error) {
|
if (error) {
|
||||||
const errors: Record<string, string> = {}
|
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;
|
return errors;
|
||||||
}
|
}
|
||||||
throw error;
|
throw error;
|
||||||
|
|||||||
Reference in New Issue
Block a user