mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-22 07:51:17 +01:00
prefix errors with requested uuid
This commit is contained in:
parent
9d6f602206
commit
64948368c5
@ -40,7 +40,7 @@ router.get("/:uuid.:ext?", function(req, res) {
|
||||
helpers.get_avatar(uuid, helm, size, function(err, status, image, hash) {
|
||||
logging.log(uuid + " - " + human_status[status]);
|
||||
if (err) {
|
||||
logging.error(err);
|
||||
logging.error(uuid + " " + err);
|
||||
}
|
||||
etag = hash && hash.substr(0, 32) || "none";
|
||||
var matches = req.get("If-None-Match") == '"' + etag + '"';
|
||||
@ -60,7 +60,7 @@ router.get("/:uuid.:ext?", function(req, res) {
|
||||
}
|
||||
});
|
||||
} catch(e) {
|
||||
logging.error("Error!");
|
||||
logging.error(uuid + " error:");
|
||||
logging.error(e);
|
||||
handle_default(500, status);
|
||||
}
|
||||
|
||||
@ -51,7 +51,7 @@ router.get("/:type/:uuid.:ext?", function(req, res) {
|
||||
helpers.get_render(uuid, scale, helm, body, function(err, status, hash, image) {
|
||||
logging.log(uuid + " - " + human_status[status]);
|
||||
if (err) {
|
||||
logging.error(err);
|
||||
logging.error(uuid + " " + err);
|
||||
}
|
||||
etag = hash && hash.substr(0, 32) || "none";
|
||||
var matches = req.get("If-None-Match") == '"' + etag + '"';
|
||||
@ -72,7 +72,7 @@ router.get("/:type/:uuid.:ext?", function(req, res) {
|
||||
}
|
||||
});
|
||||
} catch(e) {
|
||||
logging.error("Error!");
|
||||
logging.error(uuid + " error:");
|
||||
logging.error(e);
|
||||
handle_default(500, status);
|
||||
}
|
||||
|
||||
@ -25,7 +25,7 @@ router.get("/:uuid.:ext?", function(req, res) {
|
||||
helpers.get_skin(uuid, function(err, hash, image) {
|
||||
logging.log(uuid);
|
||||
if (err) {
|
||||
logging.error(err);
|
||||
logging.error(uuid + " " + err);
|
||||
}
|
||||
etag = hash && hash.substr(0, 32) || "none";
|
||||
var matches = req.get("If-None-Match") == '"' + etag + '"';
|
||||
@ -45,7 +45,7 @@ router.get("/:uuid.:ext?", function(req, res) {
|
||||
}
|
||||
});
|
||||
} catch(e) {
|
||||
logging.error("Error!");
|
||||
logging.error(uuid + " error:");
|
||||
logging.error(e);
|
||||
handle_default(500);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user