From 3c9c73d50f68a71820d0727149819c9056bf5af3 Mon Sep 17 00:00:00 2001 From: mshanemc Date: Thu, 9 Nov 2023 09:43:44 -0600 Subject: [PATCH] refactor: use messages for text --- messages/org.md | 10 ++++++++++ src/org/org.ts | 10 +--------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/messages/org.md b/messages/org.md index d4dddcc81e..cbb345a13c 100644 --- a/messages/org.md +++ b/messages/org.md @@ -65,3 +65,13 @@ We found more than one SandboxProcess with the SandboxName %s. # sandboxNotResumable The sandbox %s cannot resume with status of %s. + +# UnexpectedResponse + +Unexpected response from the platform + +# UnexpectedResponse.actions + +- Check that the instance URL is correct and the org still exists. + +See what's at the URL that's causing the problem: %s. diff --git a/src/org/org.ts b/src/org/org.ts index e498e08332..d6cdec5fa0 100644 --- a/src/org/org.ts +++ b/src/org/org.ts @@ -705,15 +705,7 @@ export class Org extends AsyncOptionalCreatable { // an html error page like https://computing-connect-6970-dev-ed.scratch.my.salesforce.com/services/data/v50.0 // where the message is an entire html page if (e instanceof Error && (e.name.includes('ERROR_HTTP') || e.message.includes('