chore: some logging

This commit is contained in:
iCrawl
2022-08-23 22:37:19 +02:00
parent 249ba0a9a6
commit 204f4dd7c4
2 changed files with 10 additions and 2 deletions

View File

@@ -172,7 +172,10 @@ export const getStaticProps: GetStaticProps = async ({ params }) => {
},
revalidate: 3600,
};
} catch {
} catch (e) {
const error = e as Error;
console.log(error);
return {
notFound: true,
};

View File

@@ -42,6 +42,8 @@ export const getStaticProps: GetStaticProps = async ({ params }) => {
const data: string[] = await res.json();
if (!data.length) {
console.log('No tags');
return {
notFound: true,
};
@@ -56,7 +58,10 @@ export const getStaticProps: GetStaticProps = async ({ params }) => {
},
revalidate: 3600,
};
} catch {
} catch (e) {
const error = e as Error;
console.log(error);
return {
notFound: true,
};