Move errors to where appropriate

This commit is contained in:
gingerBill
2024-08-04 13:41:34 +01:00
parent 3d992e2704
commit e8d26c5797
5 changed files with 13 additions and 12 deletions
+1 -1
View File
@@ -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