Skip to content

Commit f52d4f5

Browse files
committed
CI fixes
1 parent 5401120 commit f52d4f5

File tree

1 file changed

+6
-1
lines changed
  • devolutions-agent-updater/src

1 file changed

+6
-1
lines changed

devolutions-agent-updater/src/main.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ use devolutions_agent::updater::{self, AgentServiceState};
3232
fn main() {
3333
#[cfg(not(windows))]
3434
{
35-
eprintln!("devolutions-agent-updater is only supported on Windows");
35+
use std::io::Write as _;
36+
let _ = writeln!(
37+
std::io::stderr(),
38+
"devolutions-agent-updater is only supported on Windows"
39+
);
3640
std::process::exit(1);
3741
}
3842

@@ -236,6 +240,7 @@ fn write_log(path: &str, msg: &str) {
236240
}
237241
}
238242

243+
#[cfg(windows)]
239244
fn write_to_stderr(msg: &str) -> std::io::Result<()> {
240245
use std::io::Write as _;
241246
writeln!(std::io::stderr(), "{msg}")

0 commit comments

Comments
 (0)