diff options
author | chriseth <chris@ethereum.org> | 2017-07-05 23:02:02 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2017-07-06 00:28:14 +0800 |
commit | 75f7f7e1e69329ec0413e51979fefd23c9b982f7 (patch) | |
tree | 29e5db1fd6ce5fa5029a556f1db2882ff4d1c6d6 /libsolidity | |
parent | 05a26fc98c1201057c618c536ca0537e456c9b15 (diff) | |
download | dexon-solidity-75f7f7e1e69329ec0413e51979fefd23c9b982f7.tar.gz dexon-solidity-75f7f7e1e69329ec0413e51979fefd23c9b982f7.tar.zst dexon-solidity-75f7f7e1e69329ec0413e51979fefd23c9b982f7.zip |
Do not omit error type.
Diffstat (limited to 'libsolidity')
-rw-r--r-- | libsolidity/interface/StandardCompiler.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libsolidity/interface/StandardCompiler.cpp b/libsolidity/interface/StandardCompiler.cpp index e677afc8..1f51851d 100644 --- a/libsolidity/interface/StandardCompiler.cpp +++ b/libsolidity/interface/StandardCompiler.cpp @@ -71,7 +71,7 @@ Json::Value formatErrorWithException( ) { 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 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()) { - auto err = dynamic_pointer_cast<Error const>(error); + Error const& err = dynamic_cast<Error const&>(*error); errors.append(formatErrorWithException( *error, - err->type() == Error::Type::Warning, - err->typeName(), + err.type() == Error::Type::Warning, + err.typeName(), "general", "", scannerFromSourceName |