feat: better fail error on wivrn install if computer is unauthorized

This commit is contained in:
Gabriele Musco 2023-06-21 22:58:28 +02:00
parent 162ac1394e
commit 121a69a04f
No known key found for this signature in database
GPG key ID: 1068D795C80E51DE

View file

@ -161,6 +161,9 @@ impl SimpleComponent for InstallWivrnBox {
self.install_runner.take();
self.set_install_wivrn_status(match status {
None | Some(0) => InstallWivrnStatus::Success,
Some(255) => {
InstallWivrnStatus::Done(Some("You need to authorize this computer to run developer commands in your headset. Authorize it and try again.".into()))
}
Some(err_code) => InstallWivrnStatus::Done(Some(format!(
"ADB exited with code \"{c}\"",
c = err_code