|
@@ -81,9 +81,7 @@ public:
|
|
std::string error;
|
|
std::string error;
|
|
if (!lexer_.pushSource(filename.c_str(), &error)) {
|
|
if (!lexer_.pushSource(filename.c_str(), &error)) {
|
|
if (initialized_) {
|
|
if (initialized_) {
|
|
- // $INCLUDE file
|
|
|
|
- reportError(lexer_.getSourceName(), lexer_.getSourceLine(),
|
|
|
|
- error);
|
|
|
|
|
|
+ isc_throw(InternalException, error.c_str());
|
|
} else {
|
|
} else {
|
|
// Top-level file
|
|
// Top-level file
|
|
reportError("", 0, error);
|
|
reportError("", 0, error);
|
|
@@ -116,7 +114,7 @@ public:
|
|
void doInclude() {
|
|
void doInclude() {
|
|
// First, get the filename to include
|
|
// First, get the filename to include
|
|
const MasterToken::StringRegion
|
|
const MasterToken::StringRegion
|
|
- filename(lexer_.getNextToken(MasterLexer::QSTRING).
|
|
|
|
|
|
+ filename(lexer_.getNextToken(MasterToken::QSTRING).
|
|
getStringRegion());
|
|
getStringRegion());
|
|
|
|
|
|
// TODO: Handle the case where there's Name after the
|
|
// TODO: Handle the case where there's Name after the
|