diff --git a/src/hooks/diagnostics.ts b/src/hooks/diagnostics.ts index 6296d73d..22c43ea6 100644 --- a/src/hooks/diagnostics.ts +++ b/src/hooks/diagnostics.ts @@ -20,7 +20,7 @@ const registryCheck = async (options: { doctor: SfDoctor }): Promise => { ].map(async (url) => { try { // find npm install - const module = new NpmModule('@salesforce/cli'); + const module = new NpmModule(''); const results = module.ping(url); @@ -29,9 +29,9 @@ const registryCheck = async (options: { doctor: SfDoctor }): Promise => { // 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` );