Skip to content

Commit

Permalink
docs: update ping check message
Browse files Browse the repository at this point in the history
  • Loading branch information
WillieRuemmele committed May 22, 2024
1 parent 1c1830e commit 14f086d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/hooks/diagnostics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const registryCheck = async (options: { doctor: SfDoctor }): Promise<void> => {
].map(async (url) => {
try {
// find npm install
const module = new NpmModule('@salesforce/cli');
const module = new NpmModule('');

const results = module.ping(url);

Expand All @@ -29,9 +29,9 @@ const registryCheck = async (options: { doctor: SfDoctor }): Promise<void> => {
// to trigger the catch/fail below
throw Error;
}
await Lifecycle.getInstance().emit('Doctor:diagnostic', { testName: url, status: 'pass' });
await Lifecycle.getInstance().emit('Doctor:diagnostic', { testName: `can access: ${url}`, status: 'pass' });
} catch (e) {
await Lifecycle.getInstance().emit('Doctor:diagnostic', { testName: url, status: 'fail' });
await Lifecycle.getInstance().emit('Doctor:diagnostic', { testName: `can't access: ${url}`, status: 'fail' });
options.doctor.addSuggestion(
`Cannot reach ${url} - potential network configuration error, check proxies, firewalls, environment variables`
);
Expand Down

0 comments on commit 14f086d

Please sign in to comment.