Set response to proper error message

Was setting the response to an empty string. But this makes it show the correct error.
This commit is contained in:
Dmitry Yankowski
2020-02-25 21:22:32 -05:00
parent 8d7c6f46b7
commit 60f2482082

View File

@@ -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")}`, {