Skip to content

Commit 6ae989b

Browse files
committed
modified error logging, updated about section
1 parent 3b186dd commit 6ae989b

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ app.use(function(req, res, next) {
9292
app.use(function(err, req, res, next) {
9393
// set locals, only providing error in development
9494
res.locals.message = err.message;
95-
res.locals.error = req.app.get('env') === 'development' ? err : {};
95+
res.locals.error = err;
9696

9797
// render the error page
98-
res.status(err.status || 500).send();
98+
res.status(err.status || 500).json(res.locals.error).send();
9999
//res.render('error');
100100
});
101101

controllers/jiraAuthController.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11

22
exports.logout = function(req, res){
3-
console.log('logout');
43
req.logout();
54
req.session.destroy();
65
res.redirect('/');

views/aboutModal.njk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
<p><a target="_blank" href="https://icons8.com/icon/4ONNYCMz9R42/plywood">Plywood</a> icon by <a target="_blank" href="https://icons8.com">Icons8</a></p>
99
<p><a target="_blank" href="https://icons8.com/icon/KnQ23R20ge4i/dots-loading">Dots Loading</a> icon by <a target="_blank" href="https://icons8.com">Icons8</a></p>
1010
</div>
11-
<p>Software licensed under the <a target="_blank" href="https://opensource.org/license/MIT/">MIT License</a></p>
12-
<p>Version: 0.2.1</p>
11+
<p><a target="_blank" href="https://github.com/J2-Tech/Plywood-jira">https://github.com/J2-Tech/Plywood-jira</a></p>
12+
<p>Software licensed under the <a target="_blank" href="https://github.com/J2-Tech/Plywood-jira/blob/main/LICENSE.md">MIT License</a></p>
13+
<p>Version: 0.2.3</p>
1314
</div>
1415
<div class="buttons">
1516
<button id="close-btn-about" title="Close" type="button">✖️</button>

0 commit comments

Comments
 (0)