Log errors correctly

This commit is contained in:
goat 2021-05-26 17:13:18 +02:00
parent 94362927a1
commit 84852d22eb
No known key found for this signature in database
GPG key ID: F18F057873895461

View file

@ -42,6 +42,7 @@ app.get('/characters/id/:charaId.png', async (req, res) => {
{ ttl: ttl },
function (err, result) {
if (err !== null) {
console.error(err);
res.status(500).send("Lodestone did not respond in time.");
return;
}