ok/jj
1
0
Fork 0
forked from mirrors/jj

cli: send "Failed to clean up" message to stderr

This commit is contained in:
Yuya Nishihara 2023-08-09 12:26:14 +09:00
parent d039008db8
commit 6625e91a4b
2 changed files with 2 additions and 2 deletions

View file

@ -426,7 +426,7 @@ fn cmd_git_clone(
}
}) {
writeln!(
ui,
ui.warning(),
"Failed to clean up {}: {}",
canonical_wc_path.display(),
err

View file

@ -217,9 +217,9 @@ fn test_git_clone_colocate() {
let stderr = test_env.normalize_output(&common::get_stderr_string(&assert));
insta::assert_snapshot!(stdout, @r###"
Fetching into new repo in "$TEST_ENV/failed"
Failed to clean up $TEST_ENV/failed: Directory not empty (os error 39)
"###);
insta::assert_snapshot!(stderr, @r###"
Failed to clean up $TEST_ENV/failed: Directory not empty (os error 39)
Error: could not find repository from '$TEST_ENV/bad'; class=Repository (6)
"###);
// FIXME: assert!(!test_env.env_root().join("failed").exists());