React to razor

This commit is contained in:
Ajay Bhargav Baaskaran 2017-02-19 14:22:38 -08:00
parent 3c14472bf2
commit c4a9247f87
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ namespace Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.Internal
success = false;
foreach (var error in result.CSharpDocument.Diagnostics)
{
Application.Error.WriteLine($"{result.ViewFileInfo.FullPath} ({error.Location.LineIndex}): {error.Message}");
Application.Error.WriteLine($"{result.ViewFileInfo.FullPath} ({error.Span.LineIndex}): {error.GetMessage()}");
}
}
}