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