Skip to content

Commit

Permalink
Improve error message for platforms w/o rusage
Browse files Browse the repository at this point in the history
More accurately report that resource usage reporting is not supported on
these platforms since the lack of support is not necessarily a
Windows-only issue.

Addresses #2517
  • Loading branch information
englishm authored and lu-zero committed Jul 19, 2023
1 parent 6ca4bc7 commit 7633fbf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bin/rav1e-ch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ fn init_logger() {
cfg_if::cfg_if! {
if #[cfg(any(target_os = "windows", target_arch = "wasm32"))] {
fn print_rusage() {
eprintln!("Windows benchmarking is not supported currently.");
eprintln!("Resource usage reporting is not supported on this platform");
}
} else {
fn print_rusage() {
Expand Down
2 changes: 1 addition & 1 deletion src/bin/rav1e.rs
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ fn init_logger() {
cfg_if::cfg_if! {
if #[cfg(any(target_os = "windows", target_arch = "wasm32"))] {
fn print_rusage() {
eprintln!("Windows benchmarking is not supported currently.");
eprintln!("Resource usage reporting is not supported on this platform");
}
} else {
fn print_rusage() {
Expand Down

0 comments on commit 7633fbf

Please sign in to comment.