mirror of
https://github.com/WebTools-NG/WebTools-NG
synced 2024-11-26 04:50:18 +00:00
fix to error handler
This commit is contained in:
parent
39effc3744
commit
8ca8a597a8
1 changed files with 9 additions and 3 deletions
|
@ -33,12 +33,18 @@ const actions = {
|
|||
commit('UPDATE_PLEX_SERVERS', response.data)
|
||||
})
|
||||
.catch(function (error) {
|
||||
if (error.response) {
|
||||
if (error.response) {
|
||||
console.log(error.response.data)
|
||||
console.log(error.response.status)
|
||||
alert(error.response.data.error)
|
||||
}
|
||||
});
|
||||
} else if (error.request) {
|
||||
console.log(error.request);
|
||||
} else {
|
||||
console.log('Error', error.message);
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
const getters = {
|
||||
plexServers: state => state.plexServers
|
||||
|
|
Loading…
Reference in a new issue