diff --git a/packages/hoppscotch-common/locales/en.json b/packages/hoppscotch-common/locales/en.json index 6a18bcf1..b4dd917d 100644 --- a/packages/hoppscotch-common/locales/en.json +++ b/packages/hoppscotch-common/locales/en.json @@ -456,6 +456,10 @@ "description": "An unknown error occurred.", "cause": "Unknown cause" }, + "extension": { + "heading": "Extension error", + "description": "Failed running request on extension" + }, "authproviders_load_error": "Unable to load auth providers", "browser_support_sse": "This browser doesn't seems to have Server Sent Events support.", "check_console_details": "Check console log for details.", @@ -496,7 +500,8 @@ "reading_files": "Error while reading one or more files.", "fetching_access_tokens_list": "Something went wrong while fetching the list of tokens", "generate_access_token": "Something went wrong while generating the access token", - "delete_access_token": "Something went wrong while deleting the access token" + "delete_access_token": "Something went wrong while deleting the access token", + "extension_not_found": "Extension not found" }, "export": { "as_json": "Export as JSON", @@ -882,6 +887,7 @@ "agent_reset_registration": "Reset Registration", "agent_registered": "Agent Registered", "agent_registration_successful": "Agent Registered Successfully", + "agent_registration_fetch_failed": "Couldn't fetch Agent registration information", "auto_encode_mode": "Auto", "auto_encode_mode_tooltip": "Encode the parameters in the request only if some special characters are present", "background": "Background", diff --git a/packages/hoppscotch-common/src/components/settings/Agent.vue b/packages/hoppscotch-common/src/components/settings/Agent.vue index 886404de..b2665b7a 100644 --- a/packages/hoppscotch-common/src/components/settings/Agent.vue +++ b/packages/hoppscotch-common/src/components/settings/Agent.vue @@ -646,7 +646,7 @@ async function updateMaskedAuthKey() { const registration = await store.fetchRegistrationInfo() maskedAuthKey.value = registration.auth_key_hash } catch (e) { - toast.error(t("settings.registration_fetch_failed")) + toast.error(t("settings.agent_registration_fetch_failed")) } } diff --git a/packages/hoppscotch-common/src/platform/std/kernel-interceptors/extension/index.ts b/packages/hoppscotch-common/src/platform/std/kernel-interceptors/extension/index.ts index 0cb63e6b..af164840 100644 --- a/packages/hoppscotch-common/src/platform/std/kernel-interceptors/extension/index.ts +++ b/packages/hoppscotch-common/src/platform/std/kernel-interceptors/extension/index.ts @@ -108,8 +108,8 @@ export class ExtensionKernelInterceptorService if (!window.__POSTWOMAN_EXTENSION_HOOK__) { return E.left({ humanMessage: { - heading: (t) => t("error.extension_not_found.heading"), - description: (t) => t("error.extension_not_found.description"), + heading: (t) => t("error.extension_not_found"), + description: (t) => t("error.network_fail"), }, error: { kind: "extension",