Move errors to where appropriate
This commit is contained in:
1 parent
3d992e2704
commit
e8d26c5797
5 files changed
+13
-12
No files matched your search
@@ -58,7 +58,7 @@ read_dir :: proc(fd: Handle, n: int, allocator := context.allocator) -> (fi: []F
|
||||
|
||||
dir_fi, _ := file_info_from_get_file_information_by_handle("", h)
|
||||
if !dir_fi.is_dir {
|
||||
return nil, ERROR_FILE_IS_NOT_DIR
|
||||
return nil, .Not_Dir
|
||||
}
|
||||
|
||||
n := n
|
||||
|
||||
Reference in new issue
Block a user