logs
This commit is contained in:
+11
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user