Skip to content

Commit d1447c0

Browse files
committed
MemoryGuardTest: Don't hide errors that occur at the IR parsing stage
1 parent 9512f41 commit d1447c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/libsolidity/MemoryGuardTest.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ TestCase::TestResult MemoryGuardTest::run(std::ostream& _stream, std::string con
6565

6666
if (!object || !analysisInfo || Error::containsErrors(errors))
6767
{
68-
AnsiColorized(_stream, _formatted, {formatting::BOLD, formatting::RED}) << _linePrefix << "Error parsing IR." << std::endl;
68+
AnsiColorized(_stream, _formatted, {formatting::BOLD, formatting::RED}) << _linePrefix << "Error parsing IR:" << std::endl;
69+
printPrefixed(_stream, formatErrors(filterErrors(errors), _formatted), _linePrefix);
6970
return TestResult::FatalError;
7071
}
7172

0 commit comments

Comments
 (0)