Skip to content
Snippets Groups Projects
Verified Commit 03015955 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

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

(cherry picked from commit f349e22f)
parent 7922ecb6
No related branches found
No related tags found
No related merge requests found
Pipeline #7888 passed
...@@ -67,7 +67,7 @@ Include::interpret(ostream &output, Environment &env, vector<filesystem::path> & ...@@ -67,7 +67,7 @@ Include::interpret(ostream &output, Environment &env, vector<filesystem::path> &
errmsg << " * " << current_path().string() << endl; errmsg << " * " << current_path().string() << endl;
for (const auto &dir : paths) for (const auto &dir : paths)
errmsg << " * " << absolute(dir).string() << endl; 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)); +". The following directories were searched:\n" + errmsg.str(), location));
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment