Skip to content

fs: fix cp dir/non-dir mismatch error messages - #53150

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
fahrradflucht:cp-error-messages-fix
May 31, 2024
Merged

fs: fix cp dir/non-dir mismatch error messages#53150
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
fahrradflucht:cp-error-messages-fix

Conversation

@fahrradflucht

Copy link
Copy Markdown
Contributor

The error messages for ERR_FS_CP_DIR_TO_NON_DIR and ERR_FS_CP_NON_DIR_TO_DIR were the inverse of the copy direction actually performed.

Refs: #44598 (comment)

@nodejs-github-botnodejs-github-bot added fs Issues and PRs related to the fs subsystem / file system. needs-ci PRs that need a full CI run. labels May 25, 2024

@avivkelleravivkeller left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Tip

I'm a member of the triage team, and not a core collaborator. While my approving review shows my result, it holds now power.

Comment threadlib/internal/fs/cp/cp-sync.js Outdated
The error messages for `ERR_FS_CP_DIR_TO_NON_DIR` and
`ERR_FS_CP_NON_DIR_TO_DIR` were the inverse of the copy direction
actually performed.
Refs: nodejs#44598 (comment)
@fahrradflucht
fahrradfluchtforce-pushed the cp-error-messages-fix branch from d62cf9b to 697e2c2CompareMay 25, 2024 17:37
@aduh95

Copy link
Copy Markdown
Contributor

/cc @nodejs/fs

@aduh95aduh95 added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. labels May 28, 2024
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label May 28, 2024
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@fahrradflucht

Copy link
Copy Markdown
ContributorAuthor

CI failures are flake.

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@F3n67uF3n67u added the commit-queue Add this label to land a pull request using GitHub Actions. label May 31, 2024
@nodejs-github-botnodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label May 31, 2024
@nodejs-github-bot
nodejs-github-bot merged commit 00a86fe into nodejs:mainMay 31, 2024
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Landed in 00a86fe

targos pushed a commit that referenced this pull request Jun 1, 2024
The error messages for `ERR_FS_CP_DIR_TO_NON_DIR` and
`ERR_FS_CP_NON_DIR_TO_DIR` were the inverse of the copy direction
actually performed.
Refs: #44598 (comment)
PR-URL: #53150
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: LiviaMedeiros <livia@cirno.name>
Reviewed-By: Feng Yu <F3n67u@outlook.com>
@RafaelGSSRafaelGSS mentioned this pull request Jun 7, 2024
eliphazbouye pushed a commit to eliphazbouye/node that referenced this pull request Jun 20, 2024
The error messages for `ERR_FS_CP_DIR_TO_NON_DIR` and
`ERR_FS_CP_NON_DIR_TO_DIR` were the inverse of the copy direction
actually performed.
Refs: nodejs#44598 (comment)
PR-URL: nodejs#53150
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: LiviaMedeiros <livia@cirno.name>
Reviewed-By: Feng Yu <F3n67u@outlook.com>
marco-ippolito pushed a commit that referenced this pull request Jul 19, 2024
The error messages for `ERR_FS_CP_DIR_TO_NON_DIR` and
`ERR_FS_CP_NON_DIR_TO_DIR` were the inverse of the copy direction
actually performed.
Refs: #44598 (comment)
PR-URL: #53150
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: LiviaMedeiros <livia@cirno.name>
Reviewed-By: Feng Yu <F3n67u@outlook.com>
@marco-ippolitomarco-ippolito mentioned this pull request Jul 19, 2024
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.fsIssues and PRs related to the fs subsystem / file system.needs-ciPRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@fahrradflucht@aduh95@nodejs-github-bot@lpinca@F3n67u@avivkeller@LiviaMedeiros