Skip to content
Snippets Groups Projects
Commit 6f62d122 authored by Bastien DUMONT's avatar Bastien DUMONT :angel:
Browse files

feat: change error in "second chance" to LOGIN_FAILED

parent 6a4af556
No related branches found
No related tags found
No related merge requests found
Pipeline #46937 failed
...@@ -44,7 +44,7 @@ describe('findUserAddress', () => { ...@@ -44,7 +44,7 @@ describe('findUserAddress', () => {
await findUserAddress() await findUserAddress()
expect(true).toBe(false) expect(true).toBe(false)
} catch (error) { } catch (error) {
expect(error).toBe(errors.NOT_EXISTING_DIRECTORY) expect(error).toBe(errors.LOGIN_FAILED)
} }
}) })
}) })
...@@ -47,7 +47,7 @@ async function findUserAddress(url, apiAuthKey, userLogin, pointId) { ...@@ -47,7 +47,7 @@ async function findUserAddress(url, apiAuthKey, userLogin, pointId) {
'error', 'error',
`Enedis issue ${result.Envelope.Body.Fault.detail.erreur.resultat.$.code}: ${result.Envelope.Body.Fault.faultstring}` `Enedis issue ${result.Envelope.Body.Fault.detail.erreur.resultat.$.code}: ${result.Envelope.Body.Fault.faultstring}`
) )
throw errors.NOT_EXISTING_DIRECTORY throw errors.LOGIN_FAILED
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment