Skip to content

Commit 12e53b1

Browse files
committed
Column of the error was off by 1
1 parent a51ee0b commit 12e53b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Orts.Simulation/Common/Scripting/ScriptManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ private static Assembly CompileScript(string[] path)
114114
var fileName = Path.GetFileName(error.Location.SourceTree.FilePath);
115115
var lineSpan = error.Location.SourceTree.GetLineSpan(textSpan);
116116
var line = lineSpan.StartLinePosition.Line + 1;
117-
var column = lineSpan.StartLinePosition.Character;
117+
var column = lineSpan.StartLinePosition.Character + 1;
118118
errorString.AppendFormat("\t{0}: {1}, ", error.Id, error.GetMessage());
119119
if (path.Length > 1) errorString.AppendFormat("file: {0}, ", fileName);
120120
errorString.AppendFormat("line: {0}, column: {1}", line, column);

0 commit comments

Comments
 (0)