diff --git a/cli/CHANGELOG.md b/cli/CHANGELOG.md index 9c10d335507..f06c2bf12f5 100644 --- a/cli/CHANGELOG.md +++ b/cli/CHANGELOG.md @@ -24,6 +24,7 @@ _Released 11/4/2025_ - Fixed an issue with grouped console prop items having a hard to read blue color in the console log and duplicate `:` characters being displayed. Addressed in [#32776](https://github.com/cypress-io/cypress/pull/32776). - Added more context to the error message shown when [`cy.prompt()`](https://docs.cypress.io/api/commands/prompt) fails to download. Addressed in [#32822](https://github.com/cypress-io/cypress/pull/32822). - Fixed an issue where absolute file paths were not correctly determined from the source map when the source map root was updated. Fixes [#32809](https://github.com/cypress-io/cypress/issues/32809). +- Fixed an issue where a EPIPE error shows up after CTRL+C is done in terminal. Fixes [#30659](https://github.com/cypress-io/cypress/issues/30659). Addressed in [#32873](https://github.com/cypress-io/cypress/pull/32873). **Misc:** diff --git a/packages/data-context/src/data/ProjectConfigIpc.ts b/packages/data-context/src/data/ProjectConfigIpc.ts index 45bbf068385..1e4be4f461d 100644 --- a/packages/data-context/src/data/ProjectConfigIpc.ts +++ b/packages/data-context/src/data/ProjectConfigIpc.ts @@ -157,7 +157,12 @@ export class ProjectConfigIpc extends EventEmitter { let resolved = false - this._childProcess.on('error', (err) => { + this._childProcess.on('error', (err: NodeJS.ErrnoException) => { + if (err.code === 'EPIPE') { + debug('EPIPE error in loadConfig() of child process %s', err) + return + } + debug('unhandled error in child process %s', err) this.handleChildProcessError(err, this, resolved, reject) reject(err) @@ -229,7 +234,12 @@ export class ProjectConfigIpc extends EventEmitter { return new Promise((resolve, reject) => { let resolved = false - this._childProcess.on('error', (err) => { + this._childProcess.on('error', (err: NodeJS.ErrnoException) => { + if (err.code === 'EPIPE') { + debug('EPIPE error in registerSetupIpcHandlers() of child process %s', err) + return + } + this.handleChildProcessError(err, this, resolved, reject) reject(err) })