Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelQuetin committed Jul 11, 2024
2 parents 3a84365 + e1996e0 commit 48aa537
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,10 @@ function addError(error) {
}
newError.description = 'Erreur ' + error.response.status
}
if(error.response.data.detail){
newError.description = error.response.data.detail
}
if(error.response.data.message){
newError.description = error.response.data.message
if (error?.response?.data?.detail) {
newError.description = error.response.data.detail;
} else if (error?.response?.data?.message) {
newError.description = error.response.data.message;
}
if(error.request.url){
newError.description = 'Problème de disponibilité du fichier demandé'
Expand Down

0 comments on commit 48aa537

Please sign in to comment.