std: minor cleanup in some io_error descs in io::file

This commit is contained in:
Jeff Olson 2013-09-16 23:13:16 -07:00
parent d3ed9a9e3b
commit 56c87ffb30
1 changed files with 2 additions and 2 deletions

View File

@ -603,7 +603,7 @@ trait DirectoryInfo : FileSystemInfo {
Some(_) => {
io_error::cond.raise(IoError {
kind: PathAlreadyExists,
desc: "path already exists",
desc: "Path already exists",
detail:
Some(fmt!("%s already exists; can't mkdir it", self.get_path().to_str()))
})
@ -642,7 +642,7 @@ trait DirectoryInfo : FileSystemInfo {
None =>
io_error::cond.raise(IoError {
kind: PathDoesntExist,
desc: "path doesn't exist",
desc: "Path doesn't exist",
detail: Some(fmt!("%s doesn't exist; can't rmdir it", self.get_path().to_str()))
})
}