mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-09 06:48:47 +00:00
Fix: only log errors directly if exist
This commit is contained in:
parent
68e4b98ddb
commit
e92ccc30ba
14 changed files with 16 additions and 16 deletions
|
@ -59,7 +59,7 @@ export default async function handler(req, res) {
|
|||
status,
|
||||
});
|
||||
} catch (e) {
|
||||
logger.error(e);
|
||||
if (e) logger.error(e);
|
||||
res.status(500).send({
|
||||
error: "unknown error",
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue