Fixed a silly mistake

This commit is contained in:
Esther 2020-06-22 17:57:35 +01:00
parent 9d83fa789b
commit c0c7b639ed
No known key found for this signature in database
GPG Key ID: 162A307C5EBD40EA
3 changed files with 1 additions and 9 deletions

2
app.js
View File

@ -42,7 +42,7 @@ app.use(function(err, req, res, next) {
// render the error page
res.status(err.status || 500);
res.render('error');
res.render('error', { title: 'Error', description: "Error" });
});
module.exports = app;

View File

@ -1,4 +0,0 @@
$(document).ready(function () {
var eCode = $("#error-code h2").text();
$(document).attr("title", "ESTR // " + eCode);
});

View File

@ -26,7 +26,3 @@ block content
h1= message
#error-code
h2= error.status
//pre #{error.stack}
block scripts
script(src="/javascript/error.js")