mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Proper error reporting for assembly mode.
This commit is contained in:
parent
ba9a045002
commit
1b097fd3c7
@ -921,6 +921,7 @@ bool CommandLineInterface::assemble()
|
|||||||
m_assemblyStacks[src.first].assemble();
|
m_assemblyStacks[src.first].assemble();
|
||||||
}
|
}
|
||||||
for (auto const& stack: m_assemblyStacks)
|
for (auto const& stack: m_assemblyStacks)
|
||||||
|
{
|
||||||
for (auto const& error: stack.second.errors())
|
for (auto const& error: stack.second.errors())
|
||||||
SourceReferenceFormatter::printExceptionInformation(
|
SourceReferenceFormatter::printExceptionInformation(
|
||||||
cerr,
|
cerr,
|
||||||
@ -928,6 +929,9 @@ bool CommandLineInterface::assemble()
|
|||||||
(error->type() == Error::Type::Warning) ? "Warning" : "Error",
|
(error->type() == Error::Type::Warning) ? "Warning" : "Error",
|
||||||
[&](string const& _source) -> Scanner const& { return *scanners.at(_source); }
|
[&](string const& _source) -> Scanner const& { return *scanners.at(_source); }
|
||||||
);
|
);
|
||||||
|
if (!Error::containsOnlyWarnings(stack.second.errors()))
|
||||||
|
successful = false;
|
||||||
|
}
|
||||||
|
|
||||||
return successful;
|
return successful;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user