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:
@@ -71,8 +71,8 @@ export default async function handler(req, res) {
|
||||
|
||||
logger.debug("Unknown proxy service type: %s", type);
|
||||
return res.status(403).json({ error: "Unkown proxy service type" });
|
||||
} catch (ex) {
|
||||
logger.error(ex);
|
||||
} catch (e) {
|
||||
if (e) logger.error(e);
|
||||
return res.status(500).send({ error: "Unexpected error" });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user