[Sol->Yul] Report error after Ir code

this way less scrolling is required
This commit is contained in:
Mathias Baumann
2019-06-19 18:09:23 +02:00
parent 8edf9e4baf
commit c5b50039d2
+1 -1
View File
@@ -54,7 +54,7 @@ pair<string, string> IRGenerator::run(ContractDefinition const& _contract)
string errorMessage;
for (auto const& error: asmStack.errors())
errorMessage += langutil::SourceReferenceFormatter::formatErrorInformation(*error);
solAssert(false, "Invalid IR generated:\n" + errorMessage + "\n" + ir);
solAssert(false, ir + "\n\nInvalid IR generated:\n" + errorMessage + "\n");
}
asmStack.optimize();