fix: return "message" instead of "error" so it is handled better at the client.

This commit is contained in:
fiatjaf
2020-11-10 22:59:50 -03:00
parent eaec3480e6
commit d4e30356c7
3 changed files with 15 additions and 7 deletions
+6 -1
View File
@@ -565,7 +565,12 @@ new Vue({
})
.catch(err => {
dismissAuthMsg()
LNbits.utils.notifyApiError(err)
this.$q.notify({
message: `Authentication failed. ${this.parse.lnurlauth.domain} says:`,
caption: err.response.data.message,
type: 'warning',
timeout: 5000
})
})
},
deleteWallet: function (walletId, user) {