Locale defines its own invalid error
This commit is contained in:
@@ -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 |
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user