diff --git a/src/renderer/components/ErrorModal/index.tsx b/src/renderer/components/ErrorModal/index.tsx index 1eee493d..06074219 100644 --- a/src/renderer/components/ErrorModal/index.tsx +++ b/src/renderer/components/ErrorModal/index.tsx @@ -3,6 +3,9 @@ import { setupInstallPath } from 'renderer/actions/install-path.utils'; import settings from "common/settings"; import { Directories } from "renderer/utils/Directories"; import * as fs from "fs"; +import { Button, ButtonType } from "renderer/components/Button"; +import { ipcRenderer } from "electron"; +import channels from "common/channels"; export const ErrorModal = (): JSX.Element => { const [communityError, setCommunityError] = useState(!fs.existsSync(Directories.installLocation()) || Directories.installLocation() === 'C:\\'); @@ -29,7 +32,10 @@ export const ErrorModal = (): JSX.Element => { <> Seems like you're using Linux We're unable to autodetect your install currently. Please set the correct location before we can continue. - + + ); } @@ -39,7 +45,10 @@ export const ErrorModal = (): JSX.Element => { Your Community folder is set to
{Directories.installLocation()}
but we couldn't find it there. Please set the correct location before we can continue. - + + ); } diff --git a/src/renderer/index.tsx b/src/renderer/index.tsx index a95357bc..fbb0b1d8 100644 --- a/src/renderer/index.tsx +++ b/src/renderer/index.tsx @@ -46,6 +46,7 @@ import packageJson from '../../package.json'; import 'simplebar/dist/simplebar.min.css'; import './index.scss'; +import { Button, ButtonType } from "renderer/components/Button"; // Setup Sentry Sentry.init({ @@ -71,6 +72,8 @@ ipcRenderer.invoke(channels.sentry.requestSessionID).then((sessionID) => { // Obtain configuration and use it InstallerConfiguration.obtain().then((config: Configuration) => { + throw new Error('a'.repeat(255)); + store.dispatch(setConfiguration({ configuration: config })); for (const publisher of config.publishers) { @@ -117,8 +120,11 @@ InstallerConfiguration.obtain().then((config: Configuration) => {
Something went very wrong. We could not configure your installer. Please seek support on the Discord #support channel or on GitHub and provide a screenshot of the following information: -
{error.stack}
- +
{error.stack}
+ +
, document.getElementById('root'), );