Add an error message when an illegal path is encountered.

This commit is contained in:
Mark de Wever 2008-01-13 21:10:55 +00:00
parent c2cbf186e8
commit 4a861be1db

View file

@ -838,9 +838,12 @@ bool preprocessor_data::get_chunk()
delete buf;
strings_.back() += res.str();
}
} else {
ERR_CF << "Illegal path '" << nfname
<< "' found (../ not allowed).\n";
}
} else {
ERR_CF << "too much nested preprocessing inclusions at "
ERR_CF << "Too much nested preprocessing inclusions at "
<< linenum_ << ' ' << target_.location_
<< ". Aborting.\n";
pop_token();