Add legacy skin and cape routes, improve error handling
Introduces legacy routes for Minecraft skins and capes to support older endpoints. Enhances error handling in sessionsRepository for missing skins/capes, adds getActiveSkin and getActiveCape to sessionsService, and improves error logging in server.js.
This commit is contained in:
@@ -149,7 +149,7 @@ app.all(/.*/, (req, res, next) => {
|
||||
app.use((err, req, res, next) => {
|
||||
const statusCode = err.statusCode || err.code || 500
|
||||
|
||||
logger.log(req.originalUrl)
|
||||
logger.error(`Error occured on: ${req.originalUrl.bold}`, ["API", "red"])
|
||||
logger.error(err.message, ["API", "red"])
|
||||
|
||||
if (typeof err.serialize === "function") {
|
||||
|
||||
Reference in New Issue
Block a user