Skip to content

Commit

Permalink
modified error logging, updated about section
Browse files Browse the repository at this point in the history
  • Loading branch information
J2-Tech committed Mar 18, 2024
1 parent 3b186dd commit 6ae989b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ app.use(function(req, res, next) {
app.use(function(err, req, res, next) {
// set locals, only providing error in development
res.locals.message = err.message;
res.locals.error = req.app.get('env') === 'development' ? err : {};
res.locals.error = err;

// render the error page
res.status(err.status || 500).send();
res.status(err.status || 500).json(res.locals.error).send();
//res.render('error');
});

Expand Down
1 change: 0 additions & 1 deletion controllers/jiraAuthController.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@

exports.logout = function(req, res){
console.log('logout');
req.logout();
req.session.destroy();
res.redirect('/');
Expand Down
5 changes: 3 additions & 2 deletions views/aboutModal.njk
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
<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>
<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>
</div>
<p>Software licensed under the <a target="_blank" href="https://opensource.org/license/MIT/">MIT License</a></p>
<p>Version: 0.2.1</p>
<p><a target="_blank" href="https://github.com/J2-Tech/Plywood-jira">https://github.com/J2-Tech/Plywood-jira</a></p>
<p>Software licensed under the <a target="_blank" href="https://github.com/J2-Tech/Plywood-jira/blob/main/LICENSE.md">MIT License</a></p>
<p>Version: 0.2.3</p>
</div>
<div class="buttons">
<button id="close-btn-about" title="Close" type="button">✖️</button>
Expand Down

0 comments on commit 6ae989b

Please sign in to comment.