Skip to content

Commit 351843c

Browse files
Improve error message when using GetVerificationTasks (#1027)
1 parent c1468ae commit 351843c

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

Source/Core/Token.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,5 +101,10 @@ public int CompareTo(IToken other) {
101101
}
102102
return col.CompareTo(other.col);
103103
}
104+
105+
public override string ToString()
106+
{
107+
return $"({line}, {col})";
108+
}
104109
}
105110
}

Source/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<!-- Target framework and package configuration -->
44
<PropertyGroup>
5-
<Version>3.5.3</Version>
5+
<Version>3.5.4</Version>
66
<TargetFramework>net8.0</TargetFramework>
77
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
88
<Authors>Boogie</Authors>

Source/ExecutionEngine/ExecutionEngine.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,7 @@ public async Task<IReadOnlyList<IVerificationTask>> GetVerificationTasks(Program
768768
{
769769
var sink = new CollectingErrorSink();
770770
var resolutionErrors = program.Resolve(Options, sink);
771+
771772
string GetErrorsString() => string.Join("\n", sink.Errors.Select(t => $"{t.Token}: {t.Message}"));
772773
if (resolutionErrors > 0)
773774
{

0 commit comments

Comments
 (0)