Skip to content

Commit 8b830a4

Browse files
committed
fix issues found due to linting
1 parent 41288fc commit 8b830a4

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

wrongsecrets-balancer/src/proxy/proxy.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ async function checkIfInstanceIsUp(req, res, next) {
6666
return res.redirect(`/balancer/?msg=instance-restarting&teamname=${teamname}`);
6767
} catch (error) {
6868
logger.warn(`Could not find instance for team: '${teamname}'`);
69+
logger.warn(JSON.stringify(error));
6970
res.redirect(`/balancer/?msg=instance-not-found&teamname=${teamname}`);
7071
}
7172
}

wrongsecrets-balancer/src/teams/teams.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ async function validateHMAC(req, res, next) {
113113
}
114114
res.status(403).send({ message: 'Invalid validation, please stop doing this!' });
115115
} catch (error) {
116+
logger.warn("invalid hmac provided;");
117+
logger.warn(JSON.stringify(error));
116118
res.status(500).send({ message: 'Invalid validation, please stop doing this!' });
117119
}
118120
}
@@ -141,6 +143,8 @@ async function validatePassword(req, res, next) {
141143
}
142144
}
143145
} catch (error) {
146+
logger.warn("error duing password validation");
147+
logger.warn(JSON.stringify(error));
144148
res
145149
.status(500)
146150
.send({ message: 'Go home pizzaboy! https://www.youtube.com/watch?v=qyTj4WnPE9M' });

0 commit comments

Comments
 (0)