aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnthony Broad-Crawford <abc@abc.local>2018-03-03 05:30:03 +0800
committerAnthony Broad-Crawford <abc@abc.local>2018-03-06 04:14:14 +0800
commit174c46d5afd8be4e6b23804bbdd8245d5a78cc0e (patch)
tree5da66a90080a34a7a280abcd782d81404b35a4de
parent7e2f3d3e0727cf6ef8779abd3cf6e00e5332f1ef (diff)
downloaddexon-solidity-174c46d5afd8be4e6b23804bbdd8245d5a78cc0e.tar.gz
dexon-solidity-174c46d5afd8be4e6b23804bbdd8245d5a78cc0e.tar.zst
dexon-solidity-174c46d5afd8be4e6b23804bbdd8245d5a78cc0e.zip
Improved messaging when an error spans multiple lines and updated change log file.
-rw-r--r--Changelog.md1
-rw-r--r--libsolidity/interface/SourceReferenceFormatter.cpp4
2 files changed, 3 insertions, 2 deletions
diff --git a/Changelog.md b/Changelog.md
index a28538ed..ce0cc3a2 100644
--- a/Changelog.md
+++ b/Changelog.md
@@ -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.
diff --git a/libsolidity/interface/SourceReferenceFormatter.cpp b/libsolidity/interface/SourceReferenceFormatter.cpp
index 9d02c498..0f014372 100644
--- a/libsolidity/interface/SourceReferenceFormatter.cpp
+++ b/libsolidity/interface/SourceReferenceFormatter.cpp
@@ -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)