Merge pull request #207 from liyasthomas/feature/log-errors

Feature/log errors
This commit is contained in:
Liyas Thomas
2019-10-23 07:25:50 +05:30
committed by GitHub

View File

@@ -873,6 +873,7 @@
this.$refs.historyComponent.addEntry(entry);
})();
} catch (error) {
console.error(error);
if (error.response) {
this.response.headers = error.response.headers;
this.response.status = error.response.status;
@@ -893,7 +894,7 @@
} else {
this.response.status = error.message;
this.response.body = "See JavaScript console (F12) for details.";
this.$toast.error('Something went wrong!', {
this.$toast.error(error + ' (F12 for details)', {
icon: 'error'
});
if(!this.$store.state.postwoman.settings.PROXY_ENABLED) {