diff options
| author | Florian Hahn <flo@fhahn.com> | 2014-12-25 21:34:42 +0100 |
|---|---|---|
| committer | Florian Hahn <flo@fhahn.com> | 2014-12-25 22:22:44 +0100 |
| commit | eb4b20288e6e8e704f5248c56601149dbf856599 (patch) | |
| tree | 9c73141be14bc34a51d9cb4c17c5189fbf14690b /src/libstd/sys/windows | |
| parent | f673e9841f58a2196efd3b757804efa2575f8b79 (diff) | |
| download | rust-eb4b20288e6e8e704f5248c56601149dbf856599.tar.gz rust-eb4b20288e6e8e704f5248c56601149dbf856599.zip | |
Map EEXIST to PathAlreadyExists error, closes #20226
Diffstat (limited to 'src/libstd/sys/windows')
| -rw-r--r-- | src/libstd/sys/windows/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstd/sys/windows/mod.rs b/src/libstd/sys/windows/mod.rs index 6924687d8c4..aee98e22836 100644 --- a/src/libstd/sys/windows/mod.rs +++ b/src/libstd/sys/windows/mod.rs @@ -121,6 +121,8 @@ pub fn decode_error(errno: i32) -> IoError { "invalid handle provided to function"), libc::ERROR_NOTHING_TO_TERMINATE => (io::InvalidInput, "no process to kill"), + libc::ERROR_ALREADY_EXISTS => + (io::PathAlreadyExists, "path already exists"), // libuv maps this error code to EISDIR. we do too. if it is found // to be incorrect, we can add in some more machinery to only |
