feat: print error on console when request for private stats fail to help user.
Some checks failed
CI / ci (macos-latest) (push) Has been cancelled
CI / ci (ubuntu-latest) (push) Has been cancelled
Rust / fmt (push) Has been cancelled
Rust / test (macos-latest) (push) Has been cancelled
Rust / test (ubuntu-latest) (push) Has been cancelled
Rust / typo (push) Has been cancelled
Rust / clippy (macos-latest) (push) Has been cancelled
Rust / clippy (ubuntu-latest) (push) Has been cancelled
Rust / check (macos-latest) (push) Has been cancelled
Rust / check (ubuntu-latest) (push) Has been cancelled
Rust / doc (macos-latest) (push) Has been cancelled
Rust / doc (ubuntu-latest) (push) Has been cancelled
Typo / typo (push) Has been cancelled

This commit is contained in:
Cyrix126 2024-07-21 16:36:08 +02:00
parent 3c010f6e2b
commit a401c5202a

View file

@ -93,7 +93,10 @@ impl XvbPrivStats {
);
output_console(
&mut lock!(gui_api).output,
&format!("Failure to retrieve private stats from {}", XVB_URL),
&format!(
"Failure to retrieve private stats from {} because of this error: {}",
XVB_URL, err
),
ProcessName::Xvb,
);
lock!(process).state = ProcessState::Retry;