fix debug info in errors.c
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@453 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
parent
778dbbde3e
commit
2d5fc60330
@ -363,8 +363,8 @@ Error (yap_error_number type, Term where, char *format,...)
|
||||
PrologMode &= ~AbortMode;
|
||||
PrologMode |= InErrorMode;
|
||||
} else {
|
||||
plwrite( where, DebugPutc, 0);
|
||||
where = CopyTerm(Deref(where));
|
||||
if (type != SYNTAX_ERROR)
|
||||
where = CopyTerm(Deref(where));
|
||||
if (IsVarTerm(where)) {
|
||||
/* we must be careful someone gave us a copy to a local variable */
|
||||
Term t = MkVarTerm();
|
||||
|
Reference in New Issue
Block a user