From 60f2482082b892453a666d42d9309b0beacc1c41 Mon Sep 17 00:00:00 2001 From: Dmitry Yankowski Date: Tue, 25 Feb 2020 21:22:32 -0500 Subject: [PATCH] Set response to proper error message Was setting the response to an empty string. But this makes it show the correct error. --- pages/graphql.vue | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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")}`, {