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,7 +363,7 @@ Error (yap_error_number type, Term where, char *format,...)
|
|||||||
PrologMode &= ~AbortMode;
|
PrologMode &= ~AbortMode;
|
||||||
PrologMode |= InErrorMode;
|
PrologMode |= InErrorMode;
|
||||||
} else {
|
} else {
|
||||||
plwrite( where, DebugPutc, 0);
|
if (type != SYNTAX_ERROR)
|
||||||
where = CopyTerm(Deref(where));
|
where = CopyTerm(Deref(where));
|
||||||
if (IsVarTerm(where)) {
|
if (IsVarTerm(where)) {
|
||||||
/* we must be careful someone gave us a copy to a local variable */
|
/* we must be careful someone gave us a copy to a local variable */
|
||||||
|
Reference in New Issue
Block a user