From c5b50039d28e77146ba4115e246594ba38267aa7 Mon Sep 17 00:00:00 2001 From: Mathias Baumann Date: Thu, 6 Jun 2019 14:00:30 +0200 Subject: [PATCH] [Sol->Yul] Report error after Ir code this way less scrolling is required --- libsolidity/codegen/ir/IRGenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsolidity/codegen/ir/IRGenerator.cpp b/libsolidity/codegen/ir/IRGenerator.cpp index acf74805a..17b44fcd8 100644 --- a/libsolidity/codegen/ir/IRGenerator.cpp +++ b/libsolidity/codegen/ir/IRGenerator.cpp @@ -54,7 +54,7 @@ pair 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();