mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
DocstringParsingError is not thrown anymore in StandardCompiler
This commit is contained in:
parent
fb7eec8dd5
commit
f4b6bdad38
@ -288,22 +288,14 @@ Json::Value StandardCompiler::compileInternal(Json::Value const& _input)
|
|||||||
/// This is only thrown in a very few locations.
|
/// This is only thrown in a very few locations.
|
||||||
catch (Error const& _error)
|
catch (Error const& _error)
|
||||||
{
|
{
|
||||||
if (_error.type() == Error::Type::DocstringParsingError)
|
errors.append(formatErrorWithException(
|
||||||
errors.append(formatError(
|
_error,
|
||||||
false,
|
false,
|
||||||
"DocstringParsingError",
|
_error.typeName(),
|
||||||
"general",
|
"general",
|
||||||
"Documentation parsing error: " + *boost::get_error_info<errinfo_comment>(_error)
|
"Uncaught error: ",
|
||||||
));
|
scannerFromSourceName
|
||||||
else
|
));
|
||||||
errors.append(formatErrorWithException(
|
|
||||||
_error,
|
|
||||||
false,
|
|
||||||
_error.typeName(),
|
|
||||||
"general",
|
|
||||||
"Uncaught error: ",
|
|
||||||
scannerFromSourceName
|
|
||||||
));
|
|
||||||
}
|
}
|
||||||
/// This should not be leaked from compile().
|
/// This should not be leaked from compile().
|
||||||
catch (FatalError const& _exception)
|
catch (FatalError const& _exception)
|
||||||
|
Loading…
Reference in New Issue
Block a user