We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5401120 commit f52d4f5Copy full SHA for f52d4f5
devolutions-agent-updater/src/main.rs
@@ -32,7 +32,11 @@ use devolutions_agent::updater::{self, AgentServiceState};
32
fn main() {
33
#[cfg(not(windows))]
34
{
35
- eprintln!("devolutions-agent-updater is only supported on Windows");
+ use std::io::Write as _;
36
+ let _ = writeln!(
37
+ std::io::stderr(),
38
+ "devolutions-agent-updater is only supported on Windows"
39
+ );
40
std::process::exit(1);
41
}
42
@@ -236,6 +240,7 @@ fn write_log(path: &str, msg: &str) {
236
240
237
241
238
242
243
+#[cfg(windows)]
239
244
fn write_to_stderr(msg: &str) -> std::io::Result<()> {
245
use std::io::Write as _;
246
writeln!(std::io::stderr(), "{msg}")
0 commit comments