Fix: only log errors directly if exist
This commit is contained in:
1 parent
68e4b98ddb
commit
e92ccc30ba
14 files changed
+16
-16
No files matched your search
+1
-1
@@ -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