mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Cleaning up helpers around errors
This commit is contained in:
@@ -71,7 +71,7 @@ string solidity::frontend::test::searchErrors(ErrorList const& _errors, vector<p
|
||||
break;
|
||||
}
|
||||
if (!found)
|
||||
return "Unexpected error: " + error->typeName() + ": " + msg;
|
||||
return "Unexpected error: " + Error::formatErrorType(error->type()) + ": " + msg;
|
||||
}
|
||||
if (!expectations.empty())
|
||||
{
|
||||
|
||||
@@ -145,7 +145,7 @@ void SyntaxTest::filterObtainedErrors()
|
||||
}
|
||||
}
|
||||
m_errorList.emplace_back(SyntaxTestError{
|
||||
currentError->typeName(),
|
||||
Error::formatErrorType(currentError->type()),
|
||||
currentError->errorId(),
|
||||
errorMessage(*currentError),
|
||||
sourceName,
|
||||
|
||||
Reference in New Issue
Block a user