From 4919c7bf1b9f7283ab3c1950a592ae254e304a01 Mon Sep 17 00:00:00 2001 From: msojocs Date: Wed, 22 Jan 2025 13:09:51 +0800 Subject: [PATCH] feat: error console --- .github/workflows/release.yml | 2 +- test/spec/wcc/empty/version.spec.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 57079b8..0aa30cf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -120,7 +120,7 @@ jobs: sudo update-binfmts --import /usr/share/binfmts/wine wine --version # fix: 预先运行,做一下配置,不然第一次执行会有问题 - winecfg + ./test/wine/wcc.exe || true corepack enable ls -l diff --git a/test/spec/wcc/empty/version.spec.ts b/test/spec/wcc/empty/version.spec.ts index c4c432e..9e5c914 100644 --- a/test/spec/wcc/empty/version.spec.ts +++ b/test/spec/wcc/empty/version.spec.ts @@ -16,7 +16,10 @@ describe("wcc - empty", function () { try { w = (await windows.wcc(args, projectPath)).replace(/\r\n/g, '\n') - }catch{} + } + catch(err){ + console.error('error:', err) + } const n = await linux.wcc(args, projectPath); const storagePath = path.resolve( __dirname,