cargo/crates/cargo-util
bors f7e7cc2356 Auto merge of #12820 - linyihai:broken-symlink-target, r=weihanglo
add detailed message when target folder path is invalid

# What does this PR try to resolve?
close https://github.com/rust-lang/cargo/issues/12789

add more detailed message when target folder path is invalid

# How should we test and review this PR?

Before this PR, if the target folder refer to broken symbolic link like /a/b/c, then run cargo build, the output is:

```
error: Not a directory (os error 20)
```
the detailed error message is missing.

This PR will add the error context for it, the finall output will be
```
cargo build
error: failed to create directory `/root/workspace/playground/target`

Caused by:
  Not a directory (os error 20)
```
2023-10-14 04:43:58 +00:00
..
src add detailed message when target folder path is invalid 2023-10-14 11:34:42 +08:00
Cargo.toml chore: Sort dependency tables 2023-10-10 15:03:22 -05:00
LICENSE-APACHE Move ProcessBuilder to cargo-util. 2021-03-20 15:19:03 -07:00
LICENSE-MIT Move ProcessBuilder to cargo-util. 2021-03-20 15:19:03 -07:00