Improved messaging when an error spans multiple lines and updated change log file.

This commit is contained in:
Anthony Broad-Crawford 2018-03-02 15:30:03 -06:00
parent 7e2f3d3e07
commit 174c46d5af
2 changed files with 3 additions and 2 deletions

View File

@ -10,6 +10,7 @@ Features:
* Syntax Checker: Mark ``throw`` as an error as experimental 0.5.0 feature.
* Syntax Checker: Issue error if no visibility is specified on contract functions as experimental 0.5.0 feature.
* Type Checker: disallow combining hex numbers and unit denominations as experimental 0.5.0 feature.
* Improved messaging when error spans multiple lines of a sourcefile
Bugfixes:
* Assembly: Raise error on oversized number literals in assembly.

View File

@ -79,8 +79,8 @@ void SourceReferenceFormatter::printSourceLocation(SourceLocation const* _locati
scanner.lineAtPosition(_location->start) <<
endl <<
string(startColumn, ' ') <<
"^\n" <<
"Spanning multiple lines.\n";
"^ (Relevant source part starts here and spans across multiple lines)." <<
endl;
}
void SourceReferenceFormatter::printSourceName(SourceLocation const* _location)