mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2024-11-10 07:11:53 +00:00
Return auth error on failed user data request
This commit is contained in:
parent
e8de9f2498
commit
523bf2a099
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ module.exports = io => {
|
|||
}, (error, response, body) => {
|
||||
if (error || response.statusCode !== 200) {
|
||||
winston.error(error);
|
||||
return next(error)
|
||||
return next(new Error("Authentication Failed"))
|
||||
};
|
||||
socket._user = new User(body);
|
||||
winston.info("Logged in:", body.username, body.id);
|
||||
|
|
Loading…
Reference in a new issue