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:
@@ -103,7 +103,7 @@ export default async function pyloadProxyHandler(req, res) {
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
logger.error(e);
|
||||
if (e) logger.error(e);
|
||||
return res.status(500).send({ error: { message: `Error communicating with Pyload API: ${e.toString()}` } });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user