fix: print launch error as json for easier debugging
This commit is contained in:
parent
4fbce4cd0a
commit
2082beb387
@ -181,6 +181,7 @@
|
|||||||
try {
|
try {
|
||||||
launchInfo = 'Looking for EZPPLauncher File updates...';
|
launchInfo = 'Looking for EZPPLauncher File updates...';
|
||||||
const updateResult = await getEZPPLauncherUpdateFiles(osuPath);
|
const updateResult = await getEZPPLauncherUpdateFiles(osuPath);
|
||||||
|
|
||||||
if (updateResult) {
|
if (updateResult) {
|
||||||
if (updateResult.filesToDownload.length > 0) {
|
if (updateResult.filesToDownload.length > 0) {
|
||||||
launchInfo = 'Found EZPPLauncher File updates!';
|
launchInfo = 'Found EZPPLauncher File updates!';
|
||||||
@ -358,10 +359,11 @@
|
|||||||
class="flex flex-col items-center text-sm text-center bg-theme-900 border border-theme-800 rounded-lg mx-3 p-3"
|
class="flex flex-col items-center text-sm text-center bg-theme-900 border border-theme-800 rounded-lg mx-3 p-3"
|
||||||
>
|
>
|
||||||
{#if launchError}
|
{#if launchError}
|
||||||
<span>{launchError.message}</span>
|
<pre class="text-wrap text-start">{JSON.stringify(
|
||||||
{#if launchError.stack}
|
launchError,
|
||||||
<pre>{launchError.stack}</pre>
|
Object.getOwnPropertyNames(launchError),
|
||||||
{/if}
|
2
|
||||||
|
)}</pre>
|
||||||
{:else}
|
{:else}
|
||||||
Unexpected error
|
Unexpected error
|
||||||
{/if}
|
{/if}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user