diff options
author | John Hodge <tpg@mutabah.net> | 2016-03-08 11:41:47 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-03-08 11:41:47 +0800 |
commit | d631637ae467843ffd969c6003b6c187f498ef5c (patch) | |
tree | 71a1908002656186152f8421e6c3a52aca846e31 /src/expand/mod.cpp | |
parent | 8438c45edf9ee1b561ccfec304d2a36b0671e311 (diff) | |
download | mrust-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.cpp | 2 |
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 |