Commit d3426c46 authored by nanahira's avatar nanahira

detect

parent e1286ce6
...@@ -54,7 +54,7 @@ function request_avatar(response, username) { ...@@ -54,7 +54,7 @@ function request_avatar(response, username) {
response.writeHead(500); response.writeHead(500);
response.end("Request error."); response.end("Request error.");
console.error("REQUEST ERROR", error); console.error("REQUEST ERROR", error);
} else if (body == "{\"message\":\"Not Found\"}") { } else if (body == "{\"message\":\"Not Found\"}" || body == "{\"message\":\"Authentication Error\"}") {
response.writeHead(404); response.writeHead(404);
response.end("Avatar not found."); response.end("Avatar not found.");
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment