mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-29 07:53:23 +00:00
refactor: gestion des erreurs
This commit is contained in:
@ -26,9 +26,9 @@ const options = {
|
||||
logger.debug("API response:", user);
|
||||
return user;
|
||||
}
|
||||
|
||||
throw new Error('Invalid credentials');
|
||||
logger.error('Invalid credentials')
|
||||
} catch (error) {
|
||||
logger.error('Invalid credentials')
|
||||
throw new Error(error.message || 'Invalid credentials');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user