mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
chore: return error
This commit is contained in:
@@ -177,7 +177,9 @@ export const getStaticProps: GetStaticProps = async ({ params }) => {
|
||||
console.error(error);
|
||||
|
||||
return {
|
||||
notFound: true,
|
||||
props: {
|
||||
error: e,
|
||||
},
|
||||
revalidate: 3600,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -45,7 +45,9 @@ export const getStaticProps: GetStaticProps = async ({ params }) => {
|
||||
console.error('No tags');
|
||||
|
||||
return {
|
||||
notFound: true,
|
||||
props: {
|
||||
error: 'No tags',
|
||||
},
|
||||
revalidate: 3600,
|
||||
};
|
||||
}
|
||||
@@ -64,7 +66,9 @@ export const getStaticProps: GetStaticProps = async ({ params }) => {
|
||||
console.error(error);
|
||||
|
||||
return {
|
||||
notFound: true,
|
||||
props: {
|
||||
error: e,
|
||||
},
|
||||
revalidate: 3600,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user