Log errors correctly
This commit is contained in:
parent
94362927a1
commit
84852d22eb
1 changed files with 1 additions and 0 deletions
1
index.js
1
index.js
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue