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
+5
View File
@@ -32,6 +32,9 @@ General_Error :: enum u32 {
Pattern_Has_Separator,
Unsupported,
File_Is_Pipe,
Not_Dir,
}
@@ -77,6 +80,8 @@ error_string :: proc "contextless" (ferr: Error) -> string {
case .Invalid_Callback: return "invalid callback"
case .Unsupported: return "unsupported"
case .Pattern_Has_Separator: return "pattern has separator"
case .File_Is_Pipe: return "file is pipe"
case .Not_Dir: return "file is not directory"
}
case io.Error:
switch e {