chore: log errors as errors

This commit is contained in:
iCrawl
2022-08-24 05:36:10 +02:00
parent b58e6a65ad
commit 5f093dde24
2 changed files with 3 additions and 3 deletions

View File

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

View File

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