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
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:
parent
2b56c428c5
commit
231326caf8
@ -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() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user