Add generic error message on decryption error
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
04e405e6e8
commit
ea0cccf683
1 changed files with 4 additions and 0 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue