mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
contract documentation is now parsing during compilation and not by request.
This commit is contained in:
parent
b458d543b5
commit
eb139fd4d1
@ -449,6 +449,11 @@ bool CommandLineInterface::processInput()
|
|||||||
<< boost::diagnostic_information(_exception);
|
<< boost::diagnostic_information(_exception);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
catch (DocstringParsingError const& _exception)
|
||||||
|
{
|
||||||
|
cerr << "Documentation parsing error: " << *boost::get_error_info<errinfo_comment>(_exception) << endl;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
catch (Exception const& _exception)
|
catch (Exception const& _exception)
|
||||||
{
|
{
|
||||||
cerr << "Exception during compilation: " << boost::diagnostic_information(_exception) << endl;
|
cerr << "Exception during compilation: " << boost::diagnostic_information(_exception) << endl;
|
||||||
|
@ -147,6 +147,10 @@ string compile(string _input, bool _optimize)
|
|||||||
{
|
{
|
||||||
return formatError(exception, "Internal compiler error", compiler);
|
return formatError(exception, "Internal compiler error", compiler);
|
||||||
}
|
}
|
||||||
|
catch (DocstringParsingError const& exception)
|
||||||
|
{
|
||||||
|
return formatError(exception, "Documentation parsing error", compiler);
|
||||||
|
}
|
||||||
catch (Exception const& exception)
|
catch (Exception const& exception)
|
||||||
{
|
{
|
||||||
output["error"] = "Exception during compilation: " + boost::diagnostic_information(exception);
|
output["error"] = "Exception during compilation: " + boost::diagnostic_information(exception);
|
||||||
|
Loading…
Reference in New Issue
Block a user