fix(windows): own printer removal stderr before formatting
Some checks failed
Desktop Release / Bootstrap updater signing key (push) Has been cancelled
Desktop Release / Windows x64 NSIS (push) Has been cancelled
Desktop Release / Linux x64 DEB + AppImage (push) Has been cancelled
Desktop Release / Publish public desktop release (push) Has been cancelled

This commit is contained in:
Admin 2026-09-26 04:35:17 +00:00
parent 2b56c428c5
commit 231326caf8

View File

@ -507,7 +507,7 @@ if (Get-PrinterPort -Name $portName -ErrorAction SilentlyContinue) {{
let _ = fs::remove_file(&script_path); let _ = fs::remove_file(&script_path);
if !status.success() { if !status.success() {
let stderr = String::from_utf8_lossy(&direct.stderr).trim(); let stderr = String::from_utf8_lossy(&direct.stderr).trim().to_owned();
return Err(anyhow!( return Err(anyhow!(
"removing FieldLens Print failed{}", "removing FieldLens Print failed{}",
if stderr.is_empty() { if stderr.is_empty() {