src/os.cpp: os_file_read: return ErrorIsDir on case EISDIR;
parent
085d049a08
commit
947cdafd91
|
@ -1976,7 +1976,7 @@ Error os_file_read(OsFile file, void *ptr, size_t *len) {
|
||||||
case EFAULT:
|
case EFAULT:
|
||||||
zig_unreachable();
|
zig_unreachable();
|
||||||
case EISDIR:
|
case EISDIR:
|
||||||
zig_unreachable();
|
return ErrorIsDir;
|
||||||
default:
|
default:
|
||||||
return ErrorFileSystem;
|
return ErrorFileSystem;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue