node/lib/internal/fs/cp
Mathis Wiehl 00a86fe76f
fs: fix cp dir/non-dir mismatch error messages
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: https://github.com/nodejs/node/issues/44598#issuecomment-1562522423
PR-URL: https://github.com/nodejs/node/pull/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>
2024-05-31 22:12:16 +00:00
..
cp-sync.js fs: fix cp dir/non-dir mismatch error messages 2024-05-31 22:12:16 +00:00
cp.js fs: fix cp dir/non-dir mismatch error messages 2024-05-31 22:12:16 +00:00