mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 12:03:31 +01:00
chore: log errors as errors
This commit is contained in:
@@ -174,7 +174,7 @@ export const getStaticProps: GetStaticProps = async ({ params }) => {
|
|||||||
};
|
};
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
const error = e as Error;
|
const error = e as Error;
|
||||||
console.log(error);
|
console.error(error);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
notFound: true,
|
notFound: true,
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ export const getStaticProps: GetStaticProps = async ({ params }) => {
|
|||||||
const data: string[] = await res.json();
|
const data: string[] = await res.json();
|
||||||
|
|
||||||
if (!data.length) {
|
if (!data.length) {
|
||||||
console.log('No tags');
|
console.error('No tags');
|
||||||
|
|
||||||
return {
|
return {
|
||||||
notFound: true,
|
notFound: true,
|
||||||
@@ -60,7 +60,7 @@ export const getStaticProps: GetStaticProps = async ({ params }) => {
|
|||||||
};
|
};
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
const error = e as Error;
|
const error = e as Error;
|
||||||
console.log(error);
|
console.error(error);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
notFound: true,
|
notFound: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user