Macro processor: fix error message when @#include is used with nonexistent file

master
Sébastien Villemot 2022-12-14 15:21:43 +01:00
parent 50a2737e41
commit f349e22f4c
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ Include::interpret(ostream &output, Environment &env, vector<filesystem::path> &
errmsg << " * " << current_path().string() << endl;
for (const auto &dir : paths)
errmsg << " * " << absolute(dir).string() << endl;
error(StackTrace("@#includepath", "Could not open " + filename.string()
error(StackTrace("@#include", "Could not open " + filename.string()
+". The following directories were searched:\n" + errmsg.str(), location));
}
}