switch invalid term from type to domain error

This commit is contained in:
Bennet Bleßmann
2024-08-04 15:16:37 +02:00
parent deed6fb984
commit 058b9c5e51
3 changed files with 3 additions and 5 deletions

View File

@@ -981,8 +981,8 @@ impl MachineState {
pub(crate) fn directive_error(&mut self, err: DirectiveError) -> MachineError {
match err {
DirectiveError::ExpectedDirective(_term) => self.type_error(
ValidType::Directive,
DirectiveError::ExpectedDirective(_term) => self.domain_error(
DomainErrorType::Directive,
atom_as_cell!(atom!("todo_insert_invalid_term_here")),
),
DirectiveError::InvalidDirective(name, arity) => {