Use printErrorInformation() over printExceptionInformation() where possible

This commit is contained in:
Kamil Śliwak
2023-08-11 14:15:56 +02:00
parent 4020552e1d
commit a59fc39f10
3 changed files with 6 additions and 5 deletions
+1 -4
View File
@@ -77,10 +77,7 @@ DEFINE_PROTO_FUZZER(Program const& _input)
Error::containsErrors(stack.errors())
)
{
SourceReferenceFormatter formatter(std::cout, stack, false, false);
for (auto const& error: stack.errors())
formatter.printExceptionInformation(*error, Error::errorSeverity(error->type()));
SourceReferenceFormatter{std::cout, stack, false, false}.printErrorInformation(stack.errors());
yulAssert(false, "Proto fuzzer generated malformed program");
}