summaryrefslogtreecommitdiff
path: root/src/expand/mod.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/expand/mod.cpp')
-rw-r--r--src/expand/mod.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expand/mod.cpp b/src/expand/mod.cpp
index 3f35d4dc..c6d5eec2 100644
--- a/src/expand/mod.cpp
+++ b/src/expand/mod.cpp
@@ -80,7 +80,7 @@ AST::Expr Expand_Macro(bool is_early, LList<const AST::Module*> modstack, ::AST:
if( ! is_early ) {
// TODO: Error - Unknown macro name
// TODO: Get a span via MacroInvocation and emit a good error
- throw ::std::runtime_error( FMT("Unknown macro '" << mi.name() << "'") );
+ ERROR(mi.span(), E0000, "Unknown macro '" << mi.name() << "'");
}
// Leave valid and return an empty expression