PLIOError should not prevent weird errors, like

resource_errors (#36).
This commit is contained in:
Vitor Santos Costa 2009-06-12 13:46:44 -05:00
parent 303261b283
commit 1005fa8abf
1 changed files with 2 additions and 1 deletions

View File

@ -536,7 +536,8 @@ Yap_InitPlIO (void)
static Int
PlIOError (yap_error_number type, Term culprit, char *who)
{
if (Yap_GetValue(AtomFileerrors) == MkIntTerm(1)) {
if (Yap_GetValue(AtomFileerrors) == MkIntTerm(1) ||
type == RESOURCE_ERROR_MAX_STREAMS /* do not catch resource errors */) {
Yap_Error(type, culprit, who);
/* and fail */
return FALSE;