mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
chore: some logging
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user