Skip to content

Commit

Permalink
fix: better error name
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Dec 30, 2020
1 parent 92ced7e commit 43cac98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const SFDX_HTTP_HEADERS = {
'user-agent': clientId,
};

const ORG_NOT_FOUND_ERROR_NAME = 'Org Not Found';
const ORG_NOT_FOUND_ERROR_NAME = 'Domain Not Found';

// This interface is so we can add the autoFetchQuery method to both the Connection
// and Tooling classes and get nice typing info for it within editors. JSForce is
Expand Down Expand Up @@ -227,6 +227,7 @@ export class Connection extends JSForceConnection {
throw new SfdxError('The org cannot be found', ORG_NOT_FOUND_ERROR_NAME, [
'Verify that the org still exists',
'If your org is newly created, wait a minute and run your command again',
"If you deployed or updated the org's My Domain, update your instanceUrl",
]);
}
}
Expand Down

0 comments on commit 43cac98

Please sign in to comment.