| author | |
| committer | |
| log | 89afd4bd33c72c2e608974d182f4624078da3a7f |
| tree | 99762897b2e0f317fa58157e0ad02a18a05d796a |
| parent | 1e0addcf73ee71d23a41b744995848bcca38e8d3 |
The INVAL error was marked unreachable which prevents handling
of the error at a higher level.
It seems like it should map to BadPathError based on the man page for
rmdir (and an incomplete understanding of DeleteDirError), which says:
```
EINVAL pathname has . as last component.
```1 files changed, 1 insertions(+), 1 deletions(-)
lib/std/os.zig+1-1| ... | ... | @@ -2538,7 +2538,7 @@ pub fn rmdirZ(dir_path: [*:0]const u8) DeleteDirError!void { |
| 2538 | 2538 | .PERM => return error.AccessDenied, |
| 2539 | 2539 | .BUSY => return error.FileBusy, |
| 2540 | 2540 | .FAULT => unreachable, |
| 2541 | .INVAL => unreachable, | |
| 2541 | .INVAL => return error.BadPathName, | |
| 2542 | 2542 | .LOOP => return error.SymLinkLoop, |
| 2543 | 2543 | .NAMETOOLONG => return error.NameTooLong, |
| 2544 | 2544 | .NOENT => return error.FileNotFound, |