1
0
mirror of https://github.com/Foltik/Shimapan synced 2024-11-10 15:48:27 -05:00

Add missing semicolon

This commit is contained in:
Jack Foltz 2018-01-14 10:37:07 -05:00
parent f64fb3526b
commit 695696965c
Signed by: foltik
GPG Key ID: 303F88F996E95541

View File

@ -7,7 +7,7 @@ var register = require('./register.js');
var login = require('./login.js'); var login = require('./login.js');
var panel = require('./panel.js'); var panel = require('./panel.js');
var keys = require('./keys.js'); var keys = require('./keys.js');
var invites = require('./invites.js') var invites = require('./invites.js');
var Key = require('../models/Key.js'); var Key = require('../models/Key.js');
@ -55,7 +55,7 @@ module.exports = function (app) {
app.use('/panel', requireLogin, panel); app.use('/panel', requireLogin, panel);
app.use('/panel*', requireLogin, panel); app.use('/panel*', requireLogin, panel);
app.use(function (err, req, res, next) { app.use(function (err, req, res) {
if (err.name === 'UnauthorizedError') { if (err.name === 'UnauthorizedError') {
res.status(401); res.status(401);
res.json({"message": err.name + ": " + err.message}); res.json({"message": err.name + ": " + err.message});