From 60d928cc290f944dfe52a2967b41baffcd9dbfa9 Mon Sep 17 00:00:00 2001 From: Alexander Alemayhu Date: Sat, 10 Sep 2022 17:38:02 +0200 Subject: [PATCH] feat: encourage users to share their page --- src/lib/misc/ErrorHandler.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/misc/ErrorHandler.tsx b/src/lib/misc/ErrorHandler.tsx index 222858c58..96432231c 100644 --- a/src/lib/misc/ErrorHandler.tsx +++ b/src/lib/misc/ErrorHandler.tsx @@ -2,11 +2,14 @@ import { renderToStaticMarkup } from 'react-dom/server'; import * as Sentry from '@sentry/node'; import express from 'express'; +const ADMIN_EMAIL = 'alexander@alemayhu.com'; export const NO_PACKAGE_ERROR = new Error( renderToStaticMarkup(
Could not create a deck using your file and rules. Please review your{' '} - settings + settings or send an email to{' '} + {ADMIN_EMAIL} with the page you + uploaded.
) );