We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5401120 commit e84e4aeCopy full SHA for e84e4ae
devolutions-agent-updater/src/main.rs
@@ -32,7 +32,8 @@ 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!(std::io::stderr(), "devolutions-agent-updater is only supported on Windows");
37
std::process::exit(1);
38
}
39
@@ -236,6 +237,7 @@ fn write_log(path: &str, msg: &str) {
236
237
238
239
240
+#[cfg(windows)]
241
fn write_to_stderr(msg: &str) -> std::io::Result<()> {
242
use std::io::Write as _;
243
writeln!(std::io::stderr(), "{msg}")
0 commit comments