Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4735 from minrk/better-errors
add some HTML error pages
- Loading branch information
Showing
13 changed files
with
169 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
div.error { | ||
margin: 2em; | ||
text-align: center; | ||
} | ||
|
||
div.error > h1 { | ||
font-size: 500%; | ||
line-height: normal; | ||
} | ||
|
||
div.error > p { | ||
font-size: 200%; | ||
line-height: normal; | ||
} | ||
|
||
div.traceback-wrapper { | ||
text-align: left; | ||
max-width: 800px; | ||
margin: auto; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@import "variables.less"; | ||
@import "mixins.less"; | ||
@import "flexbox.less"; | ||
|
||
@import "error.less"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{% extends "error.html" %} | ||
{% block error_detail %} | ||
<p>You are requesting a page that does not exist!</p> | ||
{% endblock %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{% extends "page.html" %} | ||
|
||
{% block login_widget %} | ||
{% endblock %} | ||
|
||
{% block stylesheet %} | ||
{{super()}} | ||
<style type="text/css"> | ||
/* disable initial hide */ | ||
div#header, div#site { | ||
display: block; | ||
} | ||
</style> | ||
{% endblock %} | ||
{% block site %} | ||
|
||
<div class="error"> | ||
{% block h1_error %} | ||
<h1>{{status_code}} : {{status_message}}</h1> | ||
{% endblock h1_error %} | ||
{% block error_detail %} | ||
{% if message %} | ||
<p>The error was:</p> | ||
<div class="traceback-wrapper"> | ||
<pre class="traceback">{{message}}</pre> | ||
</div> | ||
{% endif %} | ||
{% endblock %} | ||
</header> | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters