mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-06 12:18:48 +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
|
@ -65,7 +65,7 @@ export async function getStaticProps() {
|
|||
},
|
||||
};
|
||||
} catch (e) {
|
||||
if (logger) {
|
||||
if (logger && e) {
|
||||
logger.error(e);
|
||||
}
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue