From 9c0f39a7e2560b0d822b72a4aa9b4054feded320 Mon Sep 17 00:00:00 2001 From: tripp Date: Tue, 4 Oct 2022 21:42:26 -0400 Subject: [PATCH] fixed no floating promises bug in error handling --- src/lib/setup/setup.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/setup/setup.ts b/src/lib/setup/setup.ts index 5c86d17..9ebc329 100644 --- a/src/lib/setup/setup.ts +++ b/src/lib/setup/setup.ts @@ -132,7 +132,7 @@ export async function extractAndValidateISO( return true; } - handleErrorCode(output.code, "Extraction"); + await handleErrorCode(output.code, "Extraction"); } /** @@ -168,7 +168,7 @@ export async function decompileGameData(filePath: string): Promise { if (output.code === 0) { return true; } - handleErrorCode(output.code, "Decompiler"); + await handleErrorCode(output.code, "Decompiler"); } /** @@ -203,7 +203,7 @@ export async function compileGame(filePath: string): Promise { if (output.code === 0) { return true; } - handleErrorCode(output.code, "Compiler"); + await handleErrorCode(output.code, "Compiler"); } export async function fullInstallation(game: SupportedGame): Promise {