This commit is contained in:
sxyazi 2025-03-12 14:10:55 +08:00
parent c7fd1e88e1
commit 2f4e7a6ce7
No known key found for this signature in database

View file

@ -156,9 +156,9 @@ impl Handle {
}
error!(
"Failed to open {}, falling back to stdin/stdout: {err}",
"Failed to open {}, falling back to stdin/stdout: {}",
if out { "CONOUT$" } else { "CONIN$" },
Error::last_os_error(),
Error::last_os_error()
);
Self {
inner: if out { stdout().as_raw_handle() } else { stdin().as_raw_handle() },