mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 09:51:04 +01:00
Remove RuntimeError / CompilationError. (#2258)
Instead, work out the prefix for an error based on whether it was produced during parsing, semantic analysis, or when running the program.
This commit is contained in:
@@ -17,7 +17,7 @@ auto ParseAndLexContext::RecordSyntaxError(Error error) -> Parser::symbol_type {
|
||||
|
||||
auto ParseAndLexContext::RecordSyntaxError(const std::string& message)
|
||||
-> Parser::symbol_type {
|
||||
return RecordSyntaxError(CompilationError(source_loc()) << message);
|
||||
return RecordSyntaxError(ProgramError(source_loc()) << message);
|
||||
}
|
||||
|
||||
} // namespace Carbon
|
||||
|
||||
Reference in New Issue
Block a user