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…
Reference in New Issue
Block a user