Add shortcuts for formatting error information

This commit is contained in:
mingchuan
2019-04-10 18:44:45 +08:00
parent ef3a18999c
commit f1374066af
13 changed files with 34 additions and 55 deletions
+1 -4
View File
@@ -130,8 +130,5 @@ void ObjectCompilerTest::printErrors(ostream& _stream, ErrorList const& _errors)
SourceReferenceFormatter formatter(_stream);
for (auto const& error: _errors)
formatter.printExceptionInformation(
*error,
(error->type() == Error::Type::Warning) ? "Warning" : "Error"
);
formatter.printErrorInformation(*error);
}