Repository: cypress-io/cypress
File: packages/driver/src/cypress/error_messages.ts (TypeScript)

Code before:
  prompt: {
    promptDownloadError (obj) {
      return {
        message: stripIndent`\
        Failed to download \`cy.prompt\` Cloud code:

        - ${obj.error.code ? `${obj.error.code}: ` : ''}${obj.error.message}

        Check your network connection and file settings to ensure download is not interrupted.
      `,
        docsUrl: 'https://on.cypress.io/prompt-download-error',
      }
    },
    promptDownloadTimedOut (obj) {
      return {
        message: stripIndent`\
        Timed out downloading \`cy.prompt\` Cloud code.

        Check your network connection and system configuration to ensure download is not interrupted.
      `,
        docsUrl: 'https://on.cypress.io/prompt-download-error',
      }
    },
    promptProxyError: {
      message: stripIndent`\
      \`cy.prompt\` requires internet access to work. To continue, you may need to configure Cypress with your proxy settings.
      `,
      docsUrl: 'https://on.cypress.io/proxy-configuration',
    },
    promptTestingTypeError: stripIndent`\
      \`cy.prompt\` is currently only supported in end-to-end tests.
    `,
    experimentalPromptCommandError: stripIndent`\
      \`cy.prompt\` cannot be called without the \`experimentalPromptCommand\` being set. 

      Please set this in your Cypress config file to continue using \`cy.prompt\`.
    `,
  },

  proxy: {
    js_rewriting_failed: stripIndent`\
      An error occurred in the Cypress proxy layer while rewriting your source code. This is a bug in Cypress. Open an issue if you see this message.

      JS URL: {{url}}

      Original error:

      {{errMessage}}
      {{errStack}}`,
  },


Review comment (suggestion):
I wonder if it would be clearer to be more specific:

```suggestion
      \`cy.prompt\` requires access to Cypress Cloud. To continue, you may need to configure Cypress with your proxy settings.
```

Code after:
  prompt: {
    promptDownloadError (obj) {
      return {
        message: stripIndent`\
        Failed to download \`cy.prompt\` Cloud code:

        - ${obj.error.code ? `${obj.error.code}: ` : ''}${obj.error.message}

        Check your network connection and file settings to ensure download is not interrupted.
      `,
        docsUrl: 'https://on.cypress.io/prompt-download-error',
      }
    },
    promptDownloadTimedOut (obj) {
      return {
        message: stripIndent`\
        Timed out downloading \`cy.prompt\` Cloud code.

        Check your network connection and system configuration to ensure download is not interrupted.
      `,
        docsUrl: 'https://on.cypress.io/prompt-download-error',
      }
    },
    promptProxyError: {
      message: stripIndent`\
      \`cy.prompt\` requires an internet connection to work. To continue, you may need to configure Cypress with your proxy settings.
      `,
      docsUrl: 'https://on.cypress.io/proxy-configuration',
    },
    promptTestingTypeError: stripIndent`\
      \`cy.prompt\` is currently only supported in end-to-end tests.
    `,
    experimentalPromptCommandError: stripIndent`\
      \`cy.prompt\` cannot be called without the \`experimentalPromptCommand\` being set. 

      Please set this in your Cypress config file to continue using \`cy.prompt\`.
    `,
  },

  proxy: {
    js_rewriting_failed: stripIndent`\
      An error occurred in the Cypress proxy layer while rewriting your source code. This is a bug in Cypress. Open an issue if you see this message.

      JS URL: {{url}}

      Original error:

      {{errMessage}}
      {{errStack}}`,
  },