From c42d2ac30029ae52b8de15718ccaa8e0a11830ec Mon Sep 17 00:00:00 2001 From: Alexander Alemayhu Date: Fri, 6 Oct 2023 18:50:23 +0200 Subject: [PATCH] fix: remove GitHub link from the no package error We are getting some very low quality bug reports from people not spending time to learn how 2anki.net works. --- src/lib/misc/ErrorHandler.tsx | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/src/lib/misc/ErrorHandler.tsx b/src/lib/misc/ErrorHandler.tsx index 21b407a56..a1451ecf3 100644 --- a/src/lib/misc/ErrorHandler.tsx +++ b/src/lib/misc/ErrorHandler.tsx @@ -2,15 +2,21 @@ import express from 'express'; import { renderToStaticMarkup } from 'react-dom/server'; import { sendError } from '../error/sendError'; -const NEW_GITHUB_ISSUE = 'https://github.com/2anki/server/issues/new/choose'; export const NO_PACKAGE_ERROR = new Error( renderToStaticMarkup( -
- Deck creation failed with file/rules. Kindly double-check your{' '} - settings or submit an issue on{' '} - GitHub, including an example for reference. - Could not create a deck using your file and rules. -
+ <> +
+ Could not create a deck using your file(s) and rules. Make sure to at + least create on valid toggle or verify your{' '} + settings? Example: +
+
+
+ This the front + This is the back +
+
+ ) );