diff --git a/src/graphql/schema/frontpage.ts b/src/graphql/schema/frontpage.ts index 5b7693e..5c137da 100644 --- a/src/graphql/schema/frontpage.ts +++ b/src/graphql/schema/frontpage.ts @@ -7,7 +7,12 @@ builder.queryField("frontpage", (t) => type: [QuestionObj], description: "Get a list of questions that are currently on the frontpage", resolve: async () => { - return await getFrontpage(); + try { + return await getFrontpage(); + } catch (e) { + console.error(e); + throw e; + } }, }) );