Fix: only log errors directly if exist

This commit is contained in:
shamoon committed 2024-02-28 11:44:32 -08:00
1 parent 68e4b98ddb
commit e92ccc30ba
14 files changed
+16 -16

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@ export default async function minecraftProxyHandler(req, res) {
players: pingResponse.players,
});
} catch (e) {
logger.error(e);
if (e) logger.error(e);
res.status(200).send({
version: undefined,
online: false,