Report when no contracts to compile

updates
This commit is contained in:
andy53
2022-12-19 13:47:03 +01:00
committed by Nikola Matic
parent 73fcf69188
commit 3bc535e1a1
6 changed files with 91 additions and 3 deletions
+3 -2
View File
@@ -48,7 +48,6 @@
#include <libevmasm/GasMeter.h>
#include <liblangutil/Exceptions.h>
#include <liblangutil/Scanner.h>
#include <liblangutil/SourceReferenceFormatter.h>
#include <libsmtutil/Exceptions.h>
@@ -1193,8 +1192,10 @@ void CommandLineInterface::outputCompilationResults()
{
if (!m_options.output.dir.empty())
sout() << "Compiler run successful. Artifact(s) can be found in directory " << m_options.output.dir << "." << endl;
else if (contracts.empty())
sout() << "Compiler run successful. No contracts to compile." << endl;
else
serr() << "Compiler run successful, no output requested." << endl;
sout() << "Compiler run successful. No output generated." << endl;
}
}