mirror of
https://github.com/azures04/crafatar.git
synced 2026-05-06 19:10:38 +02:00
@@ -26,6 +26,7 @@ router.get('/:uuid', function(req, res) {
|
||||
|
||||
try {
|
||||
helpers.get_avatar(uuid, helm, size, function(err, status, image) {
|
||||
console.log(uuid + " - " + status);
|
||||
if (err) {
|
||||
console.error(err);
|
||||
handle_404(def);
|
||||
@@ -33,6 +34,11 @@ router.get('/:uuid', function(req, res) {
|
||||
sendimage(200, status == 1, image);
|
||||
} else if (status == 3) {
|
||||
handle_404(def);
|
||||
} else {
|
||||
console.error("wat");
|
||||
console.error(err);
|
||||
console.error(status);
|
||||
handle_404(def);
|
||||
}
|
||||
});
|
||||
} catch(e) {
|
||||
|
||||
Reference in New Issue
Block a user