mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-06 21:57:48 +01:00
Fix: only log errors directly if exist
This commit is contained in:
@@ -65,7 +65,7 @@ export async function getStaticProps() {
|
||||
},
|
||||
};
|
||||
} catch (e) {
|
||||
if (logger) {
|
||||
if (logger && e) {
|
||||
logger.error(e);
|
||||
}
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user