diff --git a/src/macro/Directives.cc b/src/macro/Directives.cc
index 8df4642c4bbcb18bd6cf49dfb319d1e351206aab..c8ca289813a77e48414ab09f41bdc2bd3cd535c7 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));
             }
         }