diff --git a/src/Microsoft.AspNet.Diagnostics/ErrorPageMiddleware.cs b/src/Microsoft.AspNet.Diagnostics/ErrorPageMiddleware.cs index 4545601bae..9b7b6f4953 100644 --- a/src/Microsoft.AspNet.Diagnostics/ErrorPageMiddleware.cs +++ b/src/Microsoft.AspNet.Diagnostics/ErrorPageMiddleware.cs @@ -142,7 +142,7 @@ namespace Microsoft.AspNet.Diagnostics int lineNumber = line.ToInt32(); return string.IsNullOrEmpty(file) - ? LoadFrame(function, string.Empty, 0, showSource) + ? LoadFrame(string.IsNullOrEmpty(function) ? line.ToString() : function, string.Empty, 0, showSource) : LoadFrame(function, file, lineNumber, showSource); }