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