Function name not passed to LoadFrame method when file name is not present in stacktrace

When file names are missing from exception stack trace the above line of code does not pass the detected function name. As a result issue described in bug : https://github.com/aspnet/Diagnostics/issues/49 happens.

This issue happens on mono. With this fix method names show up in the error page middleware output on mono.
This commit is contained in:
Praburaj 2014-11-18 17:06:08 -08:00
parent ef544d9baa
commit ba5d235a32
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ namespace Microsoft.AspNet.Diagnostics
int lineNumber = line.ToInt32();
return string.IsNullOrEmpty(file)
? LoadFrame(line.ToString(), string.Empty, 0, showSource)
? LoadFrame(function, string.Empty, 0, showSource)
: LoadFrame(function, file, lineNumber, showSource);
}