Skip to content

Commit

Permalink
feat: encourage users to share their page
Browse files Browse the repository at this point in the history
  • Loading branch information
aalemayhu committed Sep 10, 2022
1 parent fe6f6b5 commit 60d928c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/misc/ErrorHandler.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(
<div className="info">
Could not create a deck using your file and rules. Please review your{' '}
<a href="/upload?view=template">settings</a>
<a href="/upload?view=template">settings</a> or send an email to{' '}
<a href={`mailto:${ADMIN_EMAIL}`}> {ADMIN_EMAIL}</a> with the page you
uploaded.
</div>
)
);
Expand Down

0 comments on commit 60d928c

Please sign in to comment.