| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 4fd213c commit 8eb0d9d
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3276,7 +3276,7 @@ static void CpSyncCheckPaths(const FunctionCallbackInfo<Value>& args) { | |||
| 3276 | 3276 | std::string message = | |
| 3277 | 3277 | "Cannot overwrite non-directory %s with directory %s"; | |
| 3278 | 3278 | return THROW_ERR_FS_CP_DIR_TO_NON_DIR( | |
| 3279 | - env, message.c_str(), src_path_str, dest_path_str); | ||
| 3279 | + env, message.c_str(), dest_path_str, src_path_str); | ||
| 3280 | 3280 | } | |
| 3281 | 3281 | ||
| 3282 | 3282 | if (!src_is_dir && dest_is_dir) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,11 +14,11 @@ if (isInsideDirWithUnusualChars) { | |||
| 14 | 14 | tmpdir.refresh(); | |
| 15 | 15 | ||
| 16 | 16 | { | |
| 17 | - const src = nextdir(); | ||
| 17 | + const src = nextdir('FIRST_DIRECTORY'); | ||
| 18 | 18 | mkdirSync(src, mustNotMutateObjectDeep({ recursive: true })); | |
| 19 | 19 | const dest = fixtures.path('copy/kitchen-sink/README.md'); | |
| 20 | 20 | assert.throws( | |
| 21 | 21 | () => cpSync(src, dest), | |
| 22 | - { code: 'ERR_FS_CP_DIR_TO_NON_DIR' } | ||
| 22 | + { code: 'ERR_FS_CP_DIR_TO_NON_DIR', message: /non-directory .*README\.md with directory .*FIRST_DIRECTORY/ } | ||
| 23 | 23 | ); | |
| 24 | 24 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments