aboutsummaryrefslogtreecommitdiff
path: root/core/flags/errors.odin
diff options
context:
space:
mode:
Diffstat (limited to 'core/flags/errors.odin')
-rw-r--r--core/flags/errors.odin8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/flags/errors.odin b/core/flags/errors.odin
index 3d34a95d3..e9b2e18c8 100644
--- a/core/flags/errors.odin
+++ b/core/flags/errors.odin
@@ -1,5 +1,7 @@
package flags
+import "base:runtime"
+import "core:net"
import "core:os"
Parse_Error_Reason :: enum {
@@ -24,6 +26,12 @@ Parse_Error :: struct {
message: string,
}
+Unified_Parse_Error_Reason :: union #shared_nil {
+ Parse_Error_Reason,
+ runtime.Allocator_Error,
+ net.Parse_Endpoint_Error,
+}
+
// Raised during parsing.
// Provides more granular information than what just a string could hold.
Open_File_Error :: struct {