chore: language agnostic browsers missing error message (#13650)

This commit is contained in:
Max Schmitt 2022-04-20 21:02:28 +02:00 committed by GitHub
parent db524327c4
commit c397daeb07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -286,7 +286,7 @@ export class Registry {
const installCommand = buildPlaywrightCLICommand(sdkLanguage, `install${installByDefault ? '' : ' ' + name}`);
if (!canAccessFile(e)) {
const prettyMessage = [
`Looks like Playwright Test or Playwright was just installed or updated.`,
`Looks like ${sdkLanguage === 'javascript' ? 'Playwright Test or ' : ''}Playwright was just installed or updated.`,
`Please run the following command to download new browser${installByDefault ? 's' : ''}:`,
``,
` ${installCommand}`,