summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-07-27 21:13:03 +0200
committerDaniel Friesel <derf@finalrewind.org>2016-07-27 21:13:03 +0200
commitd9659083e0cebd07722b9030d4bf024bfc223c4e (patch)
tree1189266b3a96263ebae2ed467b2d20b8fe1c6c02
parent7570248c3dcd8c2129d22521ee3bc2c68294ed38 (diff)
also, error messages
-rw-r--r--public/static/main.css11
-rw-r--r--templates/exception.html.ep16
-rw-r--r--templates/main.html.ep8
-rw-r--r--templates/not_found.html.ep14
4 files changed, 25 insertions, 24 deletions
diff --git a/public/static/main.css b/public/static/main.css
index 3b1fe65..7eee1f3 100644
--- a/public/static/main.css
+++ b/public/static/main.css
@@ -17,9 +17,14 @@ div.about a {
}
div.error {
- font-size: 150%;
- font-weight: bold;
- color: #ee0000;
+ padding: 15px;
+ margin-bottom: 20px;
+ border: 1px solid #ebccd1;
+ border-radius: 4px;
+ color: #a94442;
+ background-color: #f2dede;
+ margin-left: auto;
+ margin-right: auto;
}
pre {
diff --git a/templates/exception.html.ep b/templates/exception.html.ep
index cbbc963..9e11232 100644
--- a/templates/exception.html.ep
+++ b/templates/exception.html.ep
@@ -8,20 +8,20 @@
</head>
<body>
-<div class="error">500 Internal Server Error</div>
-<div>
-<pre>
-An error occured while processing your request.
+<div class="container">
+<div class="error">
+<strong>500 Internal Server Error:</strong>
+An error occured while processing your request.<br/>
+<pre>
----------[Debug start]----------
%= $exception->message
Stash:
%= dumper $snapshot
----------[Debug end]----------
</pre>
-</div>
-<div>
-<a href="/">return to main page</a>
-</div>
+<a href="/">Return to main page</a>
+</div> <!-- error -->
+</div> <!-- container -->
</body>
</html>
diff --git a/templates/main.html.ep b/templates/main.html.ep
index b6cccd2..3e8f2ab 100644
--- a/templates/main.html.ep
+++ b/templates/main.html.ep
@@ -13,12 +13,10 @@
% if ($stop) {
% if ($errstr) {
<div class="container">
-<div class="error">Received an error from the backend service:</div>
-<div>
-<pre>
+<div class="error">
+<strong>Received an error from the backend service:</strong>
%= $errstr
-</pre>
-</div>
+</div><!-- error -->
</div><!-- container -->
% }
% elsif ($frontend eq 'png') {
diff --git a/templates/not_found.html.ep b/templates/not_found.html.ep
index 35ab355..e995b3c 100644
--- a/templates/not_found.html.ep
+++ b/templates/not_found.html.ep
@@ -8,14 +8,12 @@
</head>
<body>
-<div class="error">404 Not Found</div>
-<div>
-<pre>
+<div class="container">
+<div class="error">
+<strong>404 Not Found:</strong>
The requested URL does not exist and does not map to a public transit station.
-</pre>
-</div>
-<div>
-<a href="/">return to main page</a>
-</div>
+<a href="/">Return to main page</a>
+</div> <!-- error -->
+</div> <!-- container -->
</body>
</html>