Skip to content

Commit

Permalink
Merge pull request #2396 from LibreSign/bugfix/show-errors
Browse files Browse the repository at this point in the history
Fix handle error message
  • Loading branch information
vitormattos authored Feb 29, 2024
2 parents 0f86f85 + c7d39bd commit 84b646a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Components/Request/RequestSignature.vue
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,11 @@ export default {
emit('libresign:show-visible-elements')
})
.catch(({ response }) => {
showError(response.data.message)
if (response.data.message) {
showError(response.data.message)
} else if (response.data.errors) {
response.data.errors.forEach(error => showError(error))
}
})
this.hasLoading = false
},
Expand Down

0 comments on commit 84b646a

Please sign in to comment.