Merge branch 'release' into dev
This commit is contained in:
commit
dc7e4c8c4f
|
|
@ -113,18 +113,16 @@ namespace Microsoft.AspNet.Diagnostics
|
||||||
|
|
||||||
foreach (var item in failedCompilationFile.Messages)
|
foreach (var item in failedCompilationFile.Messages)
|
||||||
{
|
{
|
||||||
// Convert 0-based line indexes to 1-based index that the StackFrame expects
|
|
||||||
var lineIndex = item.StartLine + 1;
|
|
||||||
var frame = new StackFrame
|
var frame = new StackFrame
|
||||||
{
|
{
|
||||||
File = failedCompilationFile.SourceFilePath,
|
File = failedCompilationFile.SourceFilePath,
|
||||||
Line = lineIndex,
|
Line = item.StartLine,
|
||||||
Function = string.Empty
|
Function = string.Empty
|
||||||
};
|
};
|
||||||
|
|
||||||
if (_options.ShowSourceCode)
|
if (_options.ShowSourceCode)
|
||||||
{
|
{
|
||||||
ReadFrameContent(frame, fileContent, lineIndex, item.EndLine + 1);
|
ReadFrameContent(frame, fileContent, item.StartLine, item.EndLine);
|
||||||
frame.ErrorDetails = item.Message;
|
frame.ErrorDetails = item.Message;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue