From 3fc48e25ea0898dd96fe0d356a283db381ebbd4c Mon Sep 17 00:00:00 2001 From: code-withAshish Date: Fri, 1 Sep 2023 20:52:38 +0530 Subject: [PATCH] fix: provide explicit error message for invalid token --- src/components/vue/update-explorer/Explorer.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/vue/update-explorer/Explorer.vue b/src/components/vue/update-explorer/Explorer.vue index d6c244e..78fadfc 100644 --- a/src/components/vue/update-explorer/Explorer.vue +++ b/src/components/vue/update-explorer/Explorer.vue @@ -43,6 +43,7 @@ const clearUpdates = () => { // Listening const token = ref(""); const username = ref(""); + watch(token, (value) => { localStorage.setItem("token", JSON.stringify(value)); }); @@ -156,10 +157,14 @@ onMounted(async () => { v-if="error" class="fixed inset-0 z-50 flex h-screen w-screen items-center justify-center overflow-y-auto bg-gray-600 bg-opacity-50" > -
+
An error has occured

There was an unexpected error. Check the details below:

-
{{ JSON.stringify(error, null, 2) }}
+
+Invalid Bot token has been provided or a network problem has occured
+
+
{{ JSON.stringify(error, null, 2) }}