Show graphql error message (#1852)

Co-authored-by: StephaneBischoffSSENSE <stephane.bischoff@ssense.com>
Co-authored-by: Liyas Thomas <liyascthomas@gmail.com>
This commit is contained in:
Stephane
2021-10-03 22:31:47 -04:00
committed by GitHub
parent 2ab1d3dbfa
commit 06161bc963
4 changed files with 38 additions and 11 deletions

View File

@@ -447,12 +447,15 @@ const runQuery = async () => {
icon: "done",
})
} catch (e: any) {
response.value = `${e}. ${t("error.check_console_details")}`
response.value = `${e}`
nuxt.value.$loading.finish()
$toast.error(`${e} ${t("error.f12_details")}`, {
icon: "error_outline",
})
$toast.error(
`${t("error.something_went_wrong")}. ${t("error.check_console_details")}`,
{
icon: "error_outline",
}
)
console.error(e)
}