Skip to content

Commit

Permalink
- Message login qui n'a pas les droits
Browse files Browse the repository at this point in the history
  • Loading branch information
jvk88511334 committed Jul 8, 2024
1 parent 469756c commit adcfb9b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const drawer = ref(false)
const theme = useTheme()
function setBackendError(error) {
console.log(JSON.stringify(error))
backendError.value = true
let titleMessage = ''
if(!error.response){
Expand Down Expand Up @@ -64,6 +65,9 @@ function setBackendError(error) {
if(error.response.data.detail){
backendErrorDescription.value = error.response.data.detail
}
if(error.response.data.message){
backendErrorDescription.value = error.response.data.message
}
if(error.request.url){
backendErrorDescription.value = 'Problème de disponibilité du fichier demandé'
}
Expand Down

0 comments on commit adcfb9b

Please sign in to comment.