Skip to content
This repository has been archived by the owner on Dec 19, 2018. It is now read-only.

Remove existing implementation of StartupExceptionPage and use the on… #836

Closed
wants to merge 1 commit into from

Conversation

kichalla
Copy link
Member

…e in Common

[Fixes #831] Fix startup exception page to handle flattened exceptions

@Eilon @pranavkm

@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="NufffGet" value="C:\temp\pagegeneratoroutput" />
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ignore this file. I will remove it before checkin

@Tratcher
Copy link
Member

New screen shots, with and without details?

@davidfowl
Copy link
Member

What does this page look like? The diagnostics one?

@kichalla
Copy link
Member Author

Here you go
https://jsfiddle.net/xenv6d9s/1/ with ReflectionTypeLoadExceptions
https://jsfiddle.net/446cq538/1/ with exceptions in Configure method of Startup

@davidfowl
Copy link
Member

This startup page looks worse than the one we used to have 😄 . What happens when detailed errors aren't turned on?

@kichalla
Copy link
Member Author

😄
https://jsfiddle.net/mxaw1u0s/ with detailed errors turned off

@Tratcher
Copy link
Member

You lost the detailed footer

@kichalla
Copy link
Member Author

Good catch. Will fix.

}
else
{
model.ErrorDetails = new ExceptionDetails[] { };
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new ExceptionDetails[0]

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alternatively, could you initialize this to an empty sequence in the ErrorModel type? No risk of accidental null refs.

@Eilon
Copy link
Member

Eilon commented Aug 18, 2016

🕐

{
var exceptionDetailProvider = new ExceptionDetailsProvider(
hostingEnv.ContentRootFileProvider,
sourceCodeLineCount: 6);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the 6 a magic number or convention? And it is not configurable here.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing magical. It's just the same number we use everywhere. No need to make it configurable.

@kichalla
Copy link
Member Author

🆙 📅

@@ -156,5 +156,8 @@
<%$ include: ErrorPage.js %>
//-->
</script>
</body>
<footer>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Eilon Footer here is after the <script> tag because our razor tool generator modifies the file in a way which generates incorrect .cs file (the escaping of the double quotes get messed up...snapshot below)...probably should file a separate issue for it?

image

@kichalla
Copy link
Member Author

🆙 📅

@pranavkm
Copy link
Contributor

:shipit:

…e in Common

[Fixes #831] Fix startup exception page to handle flattened exceptions
@kichalla kichalla force-pushed the kichalla/fix-startup-exception-page branch from 029a36d to cba859a Compare August 25, 2016 23:26
@kichalla
Copy link
Member Author

83e0d47

@kichalla kichalla closed this Aug 25, 2016
@kichalla kichalla deleted the kichalla/fix-startup-exception-page branch October 19, 2016 19:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants