fix test of windows

This commit is contained in:
LaZzyMan 2026-01-28 11:44:39 +08:00
parent d9a3f7a716
commit 3d1fc7ab78

View file

@ -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;