Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

Set response to proper error message

Dmitry Yankowski60f2482082b8
diff --git a/pages/graphql.vue b/pages/graphql.vue
index 61ef95ed7..3ee2ba047 100644
--- a/pages/graphql.vue
+++ b/pages/graphql.vue
@@ -520,10 +520,7 @@ export default {
icon: "done",
})
} catch (error) {
- // Reset response back to empty string
- // Note: We're specifically setting this to an empty string, as
- // returning {} could could give the impression that the query succeeded
- this.response = ""
+ this.response = `${error}. ${this.$t("check_console_details")}`
this.$nuxt.$loading.finish()
this.$toast.error(`${error} ${this.$t("f12_details")}`, {