From 6ae989b92b1242295a49b86dc2eccdcd7cb40b26 Mon Sep 17 00:00:00 2001 From: J2 Date: Mon, 18 Mar 2024 08:04:17 -0400 Subject: [PATCH] modified error logging, updated about section --- app.js | 4 ++-- controllers/jiraAuthController.js | 1 - views/aboutModal.njk | 5 +++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app.js b/app.js index 22be8f7..adc0492 100644 --- a/app.js +++ b/app.js @@ -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'); }); diff --git a/controllers/jiraAuthController.js b/controllers/jiraAuthController.js index 0c2ebc5..2663c18 100644 --- a/controllers/jiraAuthController.js +++ b/controllers/jiraAuthController.js @@ -1,6 +1,5 @@ exports.logout = function(req, res){ - console.log('logout'); req.logout(); req.session.destroy(); res.redirect('/'); diff --git a/views/aboutModal.njk b/views/aboutModal.njk index 42a3b46..9c2a647 100644 --- a/views/aboutModal.njk +++ b/views/aboutModal.njk @@ -8,8 +8,9 @@

Plywood icon by Icons8

Dots Loading icon by Icons8

-

Software licensed under the MIT License

-

Version: 0.2.1

+

https://github.com/J2-Tech/Plywood-jira

+

Software licensed under the MIT License

+

Version: 0.2.3