mirror of
https://github.com/aurora-dot/pastel.codes.git
synced 2024-11-22 08:12:19 +00:00
Fixed a silly mistake
This commit is contained in:
parent
9d83fa789b
commit
c0c7b639ed
2
app.js
2
app.js
@ -42,7 +42,7 @@ app.use(function(err, req, res, next) {
|
|||||||
|
|
||||||
// render the error page
|
// render the error page
|
||||||
res.status(err.status || 500);
|
res.status(err.status || 500);
|
||||||
res.render('error');
|
res.render('error', { title: 'Error', description: "Error" });
|
||||||
});
|
});
|
||||||
|
|
||||||
module.exports = app;
|
module.exports = app;
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
$(document).ready(function () {
|
|
||||||
var eCode = $("#error-code h2").text();
|
|
||||||
$(document).attr("title", "ESTR // " + eCode);
|
|
||||||
});
|
|
@ -26,7 +26,3 @@ block content
|
|||||||
h1= message
|
h1= message
|
||||||
#error-code
|
#error-code
|
||||||
h2= error.status
|
h2= error.status
|
||||||
//pre #{error.stack}
|
|
||||||
|
|
||||||
block scripts
|
|
||||||
script(src="/javascript/error.js")
|
|
Loading…
Reference in New Issue
Block a user