summaryrefslogtreecommitdiff
path: root/src/expand/mod.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-03-08 11:41:47 +0800
committerJohn Hodge <tpg@mutabah.net>2016-03-08 11:41:47 +0800
commitd631637ae467843ffd969c6003b6c187f498ef5c (patch)
tree71a1908002656186152f8421e6c3a52aca846e31 /src/expand/mod.cpp
parent8438c45edf9ee1b561ccfec304d2a36b0671e311 (diff)
downloadmrust-d631637ae467843ffd969c6003b6c187f498ef5c.tar.gz
Spans on MacroInvocation, re-enable span in ERROR reporting
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