mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-13 05:42:59 +00:00
ssh remoting: Fix version check (#19668)
This snuck in when Bennet and I were debugging why our connection to the SSH host would break. We suspected that somewhere something was logging to STDOUT and, I guess, we changed all `println!` to `eprintln!`. Now, two weeks later, I'm sitting here, wondering why the version check doesn't work anymore. The server always reports a version of `""`. Turns out we take the command's STDOUT and not STDERR, which is correct. But it also turns out we started to print the version to STDERR, which breaks the version check. One-character bug & one-character fix. Release Notes: - N/A
This commit is contained in:
parent
0ffc92ab65
commit
1dba50f42f
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ fn main() {
|
|||
}
|
||||
},
|
||||
Some(Commands::Version) => {
|
||||
eprintln!("{}", env!("ZED_PKG_VERSION"));
|
||||
println!("{}", env!("ZED_PKG_VERSION"));
|
||||
std::process::exit(0);
|
||||
}
|
||||
None => {
|
||||
|
|
Loading…
Reference in a new issue