Improve error messages.

This commit is contained in:
David F. Skoll
2008-03-24 13:11:21 -04:00
parent 7b3da27461
commit 3897973bc1

View File

@@ -560,7 +560,6 @@ static int SetupGlobChain(char const *dirname, IncludeStruct *i)
int IncludeFile(char const *fname)
{
IncludeStruct *i;
int r;
int oldRunDisabled;
struct stat statbuf;
@@ -633,9 +632,9 @@ int IncludeFile(char const *fname)
return OK;
}
RunDisabled = oldRunDisabled;
/* Ugh! We failed! */
if ( (r=PopFile()) ) return r;
Eprint("%s: %s", ErrMsg[E_CANT_OPEN], fname);
/* Ugh! We failed! */
PopFile();
return E_CANT_OPEN;
}