mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-01 21:20:44 +00:00
fix test of windows
This commit is contained in:
parent
d9a3f7a716
commit
3d1fc7ab78
1 changed files with 6 additions and 2 deletions
|
|
@ -278,8 +278,12 @@ async function saveWindowsClipboardImage(
|
|||
} catch {
|
||||
// Ignore cleanup errors
|
||||
}
|
||||
} catch {
|
||||
// PowerShell failed
|
||||
} catch (error) {
|
||||
// PowerShell failed, log in DEBUG mode and re-throw
|
||||
if (process.env['DEBUG']) {
|
||||
console.error('Error in saveWindowsClipboardImage:', error);
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
|
||||
return null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue