mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-07 09:35:54 -08:00
Fix: only log errors directly if exist
This commit is contained in:
@@ -28,7 +28,7 @@ export default async function gamedigProxyHandler(req, res) {
|
||||
ping: serverData.ping,
|
||||
});
|
||||
} catch (e) {
|
||||
logger.error(e);
|
||||
if (e) logger.error(e);
|
||||
|
||||
res.status(200).send({
|
||||
online: false,
|
||||
|
||||
Reference in New Issue
Block a user