mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
src/os.cpp: os_file_read: return ErrorIsDir on case EISDIR;
This commit is contained in:
parent
085d049a08
commit
947cdafd91
@ -1976,7 +1976,7 @@ Error os_file_read(OsFile file, void *ptr, size_t *len) {
|
||||
case EFAULT:
|
||||
zig_unreachable();
|
||||
case EISDIR:
|
||||
zig_unreachable();
|
||||
return ErrorIsDir;
|
||||
default:
|
||||
return ErrorFileSystem;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user