-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixbug adresse destination invalide (envoi de SMS) (#4648)
* refactor: améliore la gestion des erreurs des followups * refactor: log pas utile * refactor: inverse l'ordre d'envoi email / sms (followup) * fix: remonte erreur addresse de destination invalide du back + interprete sur le front * fix: message d'erreur dans le followup sauvegardé correctement * refactor: formulation message erreur front - adresse invalide
- Loading branch information
Showing
6 changed files
with
87 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
export enum ErrorType { | ||
UnsupportedPhoneNumberFormat = "Unsupported phone number format", | ||
PersistingFollowup = "Persisting followup error", | ||
MissingFollowupPhone = "Missing followup phone", | ||
MissingFollowupEmail = "Missing followup email", | ||
UnknownSurveyType = "Unknown survey type", | ||
} | ||
|
||
export enum ErrorStatus { | ||
BadRequest = 400, | ||
Unauthorized = 401, | ||
Forbidden = 403, | ||
UnprocessableEntity = 422, | ||
NotFound = 404, | ||
InternalServerError = 500, | ||
} | ||
|
||
export enum ErrorName { | ||
ValidationError = "ValidationError", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters