feat: error console

This commit is contained in:
msojocs 2025-01-22 13:09:51 +08:00
parent 8001b6b3e7
commit 4919c7bf1b
2 changed files with 5 additions and 2 deletions

View File

@ -120,7 +120,7 @@ jobs:
sudo update-binfmts --import /usr/share/binfmts/wine sudo update-binfmts --import /usr/share/binfmts/wine
wine --version wine --version
# fix: 预先运行,做一下配置,不然第一次执行会有问题 # fix: 预先运行,做一下配置,不然第一次执行会有问题
winecfg ./test/wine/wcc.exe || true
corepack enable corepack enable
ls -l ls -l

View File

@ -16,7 +16,10 @@ describe("wcc - empty", function () {
try try
{ {
w = (await windows.wcc(args, projectPath)).replace(/\r\n/g, '\n') 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 n = await linux.wcc(args, projectPath);
const storagePath = path.resolve( const storagePath = path.resolve(
__dirname, __dirname,