more errors

This commit is contained in:
evan-schott 2023-09-22 12:59:56 -07:00
parent 98f25b8ece
commit 4b01d41d05
2 changed files with 22 additions and 0 deletions

View File

@ -145,4 +145,11 @@ create_messages!(
msg: format!("failed to convert symbol_table to a json value {error}"), msg: format!("failed to convert symbol_table to a json value {error}"),
help: None, help: None,
} }
@backtraced
variable_not_found {
args: (var: impl Display),
msg: format!("variable `{var}` not found in symbol table"),
help: None,
}
); );

View File

@ -656,4 +656,19 @@ create_messages!(
msg: format!("The loop bounds must be same type"), msg: format!("The loop bounds must be same type"),
help: None, help: None,
} }
@formatted
const_declaration_must_be_literal_or_tuple_of_literals {
args: (),
msg: format!("The value of a const declaration must be a literal"),
help: None,
}
@formatted
loop_bound_must_be_literal_or_const {
args: (),
msg: format!("The loop bound must be a literal or a const"),
help: None,
}
); );