mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Do not omit error type.
This commit is contained in:
parent
05a26fc98c
commit
75f7f7e1e6
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
Bugfixes:
|
Bugfixes:
|
||||||
* Code Generator: Correctly unregister modifier variables.
|
* Code Generator: Correctly unregister modifier variables.
|
||||||
|
* Error Output: Do not omit the error type.
|
||||||
|
|
||||||
### 0.4.12 (2017-07-03)
|
### 0.4.12 (2017-07-03)
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@ Json::Value formatErrorWithException(
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
string message;
|
string message;
|
||||||
string formattedMessage = SourceReferenceFormatter::formatExceptionInformation(_exception, _message, _scannerFromSourceName);
|
string formattedMessage = SourceReferenceFormatter::formatExceptionInformation(_exception, _type, _scannerFromSourceName);
|
||||||
|
|
||||||
// NOTE: the below is partially a copy from SourceReferenceFormatter
|
// NOTE: the below is partially a copy from SourceReferenceFormatter
|
||||||
SourceLocation const* location = boost::get_error_info<errinfo_sourceLocation>(_exception);
|
SourceLocation const* location = boost::get_error_info<errinfo_sourceLocation>(_exception);
|
||||||
@ -271,12 +271,12 @@ Json::Value StandardCompiler::compileInternal(Json::Value const& _input)
|
|||||||
|
|
||||||
for (auto const& error: m_compilerStack.errors())
|
for (auto const& error: m_compilerStack.errors())
|
||||||
{
|
{
|
||||||
auto err = dynamic_pointer_cast<Error const>(error);
|
Error const& err = dynamic_cast<Error const&>(*error);
|
||||||
|
|
||||||
errors.append(formatErrorWithException(
|
errors.append(formatErrorWithException(
|
||||||
*error,
|
*error,
|
||||||
err->type() == Error::Type::Warning,
|
err.type() == Error::Type::Warning,
|
||||||
err->typeName(),
|
err.typeName(),
|
||||||
"general",
|
"general",
|
||||||
"",
|
"",
|
||||||
scannerFromSourceName
|
scannerFromSourceName
|
||||||
|
Loading…
Reference in New Issue
Block a user