give dynamic predicates a better respect for module bounds

This commit is contained in:
Mark Thom
2019-03-06 00:51:21 -07:00
parent 6439d09733
commit c8ea788720
4 changed files with 25 additions and 15 deletions

View File

@@ -66,7 +66,8 @@ impl MachineError {
pub(super) fn session_error(h: usize, err: SessionError) -> Self {
match err {
SessionError::ParserError(err) => Self::syntax_error(h, err),
SessionError::CannotOverwriteBuiltIn(pred_str)
SessionError::CannotOverwriteDynamicClause(pred_str)
| SessionError::CannotOverwriteBuiltIn(pred_str)
| SessionError::CannotOverwriteImport(pred_str) =>
Self::permission_error(PermissionError::Modify, pred_str),
SessionError::ModuleDoesNotContainExport =>