From f349e22f4c40369954f50062985643bac9eec80b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Wed, 14 Dec 2022 15:21:43 +0100
Subject: [PATCH] Macro processor: fix error message when @#include is used
 with nonexistent file

---
 src/macro/Directives.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/macro/Directives.cc b/src/macro/Directives.cc
index 8df4642c..c8ca2898 100644
--- a/src/macro/Directives.cc
+++ b/src/macro/Directives.cc
@@ -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));
             }
         }
-- 
GitLab