Skip to content

Commit

Permalink
Error trying to export module qualified predicates, re issue #625
Browse files Browse the repository at this point in the history
  • Loading branch information
infradig committed Nov 11, 2024
1 parent da13e99 commit 0404aef
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -956,6 +956,12 @@ static bool directives(parser *p, cell *d)
pr->is_public = true;
} else if (!strcmp(C_STR(p, head), "op") && (head->arity == 3)) {
do_op(p, head, true);
} else {
if (DUMP_ERRS || !p->do_read_term)
fprintf(stdout, "Error: predicate export failed, '%s' in %s:%d\n", C_STR(p, head), get_loaded(p->m, p->m->filename), p->line_nbr);

p->error = true;
return true;
}
}

Expand Down

0 comments on commit 0404aef

Please sign in to comment.