mirror of
https://github.com/pesde-pkg/pesde.git
synced 2025-04-05 11:20:55 +01:00
fix: print update available message to stderr
Previously, the update available message was printed to stdout, which is not the correct place for such messages. This commit changes the message to be printed to stderr instead, which will prevent potential issues with piping the output of the command to another command.
This commit is contained in:
parent
7150f6a7da
commit
82e0d38483
2 changed files with 2 additions and 1 deletions
|
@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
### Changed
|
### Changed
|
||||||
- Make aliases case-insensitive by @daimond113
|
- Make aliases case-insensitive by @daimond113
|
||||||
|
- Print "update available" message to stderr by @daimond113
|
||||||
|
|
||||||
## [0.6.0-rc.6] - 2025-02-10
|
## [0.6.0-rc.6] - 2025-02-10
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
|
@ -111,7 +111,7 @@ pub async fn check_for_updates(reqwest: &reqwest::Client) -> anyhow::Result<()>
|
||||||
.collect::<Vec<_>>()
|
.collect::<Vec<_>>()
|
||||||
.join("\n");
|
.join("\n");
|
||||||
|
|
||||||
println!("\n{message}\n");
|
eprintln!("\n{message}\n");
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue