From c89a220afb57ce6e3b2e41f1c00938b87eaad3e7 Mon Sep 17 00:00:00 2001 From: Yevhen Vydolob Date: Fri, 17 Mar 2023 09:55:37 +0200 Subject: [PATCH] fix format Signed-off-by: Yevhen Vydolob --- src/install/win-install.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/install/win-install.ts b/src/install/win-install.ts index b7ca207..feaf72f 100644 --- a/src/install/win-install.ts +++ b/src/install/win-install.ts @@ -55,7 +55,9 @@ export class WinInstall extends BaseInstaller { // user cancel installation return false; } else { - throw new Error(`${productName} setup has exit with unexpected code: ${runResult.exitCode}. StdOut: ${runResult.stdOut}. StdErr: ${runResult.stdErr}`); + throw new Error( + `${productName} setup has exit with unexpected code: ${runResult.exitCode}. StdOut: ${runResult.stdOut}. StdErr: ${runResult.stdErr}`, + ); } } progress.report({ increment: 80 }); @@ -67,7 +69,10 @@ export class WinInstall extends BaseInstaller { } catch (err) { console.error('Error during CRC install!'); console.error(err); - await extensionApi.window.showErrorMessage(`Unexpected error, during ${productName} installation: + ${err}`, 'OK'); + await extensionApi.window.showErrorMessage( + `Unexpected error, during ${productName} installation: + ${err}`, + 'OK', + ); return false; } finally { progress.report({ increment: -1 }); @@ -96,7 +101,7 @@ export class WinInstall extends BaseInstaller { await fs.mkdir(outPath); } - await new Promise((resolve, reject) =>{ + await new Promise((resolve, reject) => { zipper.unzip(zipPath, (err, res) => { if (err) { reject(err);