fix: version check

This commit is contained in:
msojocs 2025-01-22 14:47:38 +08:00
parent 4bb1d2401f
commit 66ea0d2668
2 changed files with 7 additions and 2 deletions

View File

@ -78,7 +78,11 @@ const wcc = (args: string[], projectPath: string): Promise<string> => {
Buffer.concat(spwanData).toString()
);
// process.stderr.write(Buffer.concat(spwanData).toString());
reject(n);
reject({
code: n,
stdout: Buffer.concat(spwanData).toString(),
stderr: Buffer.concat(errData).toString(),
});
}
});
});

View File

@ -17,8 +17,9 @@ describe("wcc - empty", function () {
{
w = (await windows.wcc(args, projectPath)).replace(/\r\n/g, '\n')
}
catch(err){
catch(err: any){
console.error('error:', err)
w = err.stdout
}
const n = await linux.wcc(args, projectPath);
const storagePath = path.resolve(