mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add line info to serious exceptions.
This commit is contained in:
@@ -184,15 +184,15 @@ string compile(StringMap const& _sources, bool _optimize, CStyleReadFileCallback
|
||||
}
|
||||
catch (CompilerError const& exception)
|
||||
{
|
||||
errors.append(formatError(exception, "Compiler error", scannerFromSourceName));
|
||||
errors.append(formatError(exception, "Compiler error (" + exception.lineInfo() + ")", scannerFromSourceName));
|
||||
}
|
||||
catch (InternalCompilerError const& exception)
|
||||
{
|
||||
errors.append(formatError(exception, "Internal compiler error", scannerFromSourceName));
|
||||
errors.append(formatError(exception, "Internal compiler error (" + exception.lineInfo() + ")", scannerFromSourceName));
|
||||
}
|
||||
catch (UnimplementedFeatureError const& exception)
|
||||
{
|
||||
errors.append(formatError(exception, "Unimplemented feature", scannerFromSourceName));
|
||||
errors.append(formatError(exception, "Unimplemented feature (" + exception.lineInfo() + ")", scannerFromSourceName));
|
||||
}
|
||||
catch (Exception const& exception)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user