8000 feature #27699 Redesigned the default error page in production (javie… · symfony/symfony@76d81b9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 76d81b9

Browse files
committed
feature #27699 Redesigned the default error page in production (javiereguiluz)
This PR was merged into the 4.2-dev branch. Discussion ---------- Redesigned the default error page in production | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #22964 | License | MIT | Doc PR | - This continues the work done in #27071. Before/After comparison: ![before-after-prod-error-pages](https://user-images.githubusercontent.com/73419/41844084-6e132208-786f-11e8-97c9-53602395e231.png) Commits ------- 1df8b3e Redesigned the default error page in production
2 parents 0dcf111 + 1df8b3e commit 76d81b9

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

src/Symfony/Bundle/TwigBundle/Resources/views/Exception/error.html.twig

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,22 @@
33
<head>
44
<meta charset="{{ _charset }}" />
55
<title>An Error Occurred: {{ status_text }}</title>
6+
<style>
7+
body { background-color: #fff; color: #222; font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin: 0; }
8+
.container { margin: 30px; max-width: 600px; }
9+
h1 { color: #dc3545; font-size: 24px; }
10+
h2 { font-size: 18px; }
11+
</style>
612
</head>
713
<body>
8-
<h1>Oops! An Error Occurred</h1>
9-
<h2>The server returned a "{{ status_code }} {{ status_text }}".</h2>
14+
<div class="container">
15+
<h1>Oops! An Error Occurred</h1>
16+
<h2>The server returned a "{{ status_code }} {{ status_text }}".</h2>
1017

11-
<div>
12-
Something is broken. Please let us know what you were doing when this error occurred.
13-
We will fix it as soon as possible. Sorry for any inconvenience caused.
18+
<p>
19+
Something is broken. Please let us know what you were doing when this error occurred.
20+
We will fix it as soon as possible. Sorry for any inconvenience caused.
21+
</p>
1422
</div>
1523
</body>
1624
</html>

0 commit comments

Comments
 (0)
0