aboutsummaryrefslogtreecommitdiffstats
path: root/solc
diff options
context:
space:
mode:
authorLianaHus <liana@ethdev.com>2015-09-30 20:03:30 +0800
committerLianaHus <liana@ethdev.com>2015-10-02 18:38:48 +0800
commit2706846f43b8a274098a8a4564bddeba06059bb6 (patch)
tree97e64972b9f81756df64faebfe9f6bf56cc0e677 /solc
parentb2fa457327ca35318abaa64fec8f3217d79a3931 (diff)
downloaddexon-solidity-2706846f43b8a274098a8a4564bddeba06059bb6.tar.gz
dexon-solidity-2706846f43b8a274098a8a4564bddeba06059bb6.tar.zst
dexon-solidity-2706846f43b8a274098a8a4564bddeba06059bb6.zip
-added warning case to cl compiler
-modified warning msg
Diffstat (limited to 'solc')
-rw-r--r--solc/CommandLineInterface.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/solc/CommandLineInterface.cpp b/solc/CommandLineInterface.cpp
index a1f5fd66..e3c7620e 100644
--- a/solc/CommandLineInterface.cpp
+++ b/solc/CommandLineInterface.cpp
@@ -494,7 +494,11 @@ bool CommandLineInterface::processInput()
if (!m_compiler->compile(optimize, runs))
{
for (auto const& error: m_compiler->errors())
- SourceReferenceFormatter::printExceptionInformation(cerr, *error, "Error", *m_compiler);
+ SourceReferenceFormatter::printExceptionInformation(
+ cerr,
+ *error,
+ (dynamic_pointer_cast<Warning const>(error)) ? "Warning" : "Error", *m_compiler
+ );
return false;
}
m_compiler->link(m_libraries);