Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
:bug: Better error prompt. Fixes #283
Liyas Thomasc537477d3a43
diff --git a/pages/index.vue b/pages/index.vueindex eb109ab70..937e0d4e9 100644--- a/pages/index.vue+++ b/pages/index.vue@@ -763,7 +763,7 @@ export default {responseText &&this.response.body !== "(waiting to send request)" &&this.response.body !== "Loading..." &&- this.response.body !== "See JavaScript console (F12) for details."+ this.response.body.indexOf("console") == -1) {responseText.innerText =this.responseType === "application/json" ||@@ -1375,14 +1375,14 @@ export default {return;} else {this.response.status = error.message;- this.response.body = "See JavaScript console (F12) for details.";+ this.response.body = error + "\nCheck console for details.";this.$toast.error(error + " (F12 for details)", {icon: "error"});if (!this.$store.state.postwoman.settings.PROXY_ENABLED) {this.$toast.info("Try enabling Proxy", {icon: "help",- duration: 5000,+ duration: 8000,action: {text: "Settings",onClick: (e, toastObject) => {