Locale defines its own invalid error

This commit is contained in:
2024-10-12 23:51:52 -04:00
parent 19e6aa5259
commit 8521320a7c
7 changed files with 23 additions and 19 deletions

View File

@@ -1,4 +1,4 @@
// Any error which may be returned from a function in this module.
// All errors defined in this module.
export type error = !(
invalid_group_header |
invalid_entry |

View File

@@ -109,7 +109,7 @@ fn parse_entry(line: str) ((str, str, (locale::locale | void)) | error) = {
local = match(locale::parse(local_string)) {
case let local: locale::locale => yield local;
case errors::invalid => return invalid_entry;
case locale::invalid => return invalid_entry;
};
};