Add generic error message on decryption error

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2023-03-19 15:10:19 +01:00
parent 04e405e6e8
commit ea0cccf683
Signed by: luzifer
GPG key ID: D91C3E91E4CAD6F5

View file

@ -276,6 +276,10 @@ export default {
.then(secret => { .then(secret => {
this.secret = secret this.secret = secret
}) })
.catch(() => {
this.error = this.$t('alert-something-went-wrong')
this.showError = true
})
}) })
.catch(err => { .catch(err => {
switch (err.response.status) { switch (err.response.status) {