mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-08-03 06:38:52 +00:00
feat: better fail error on wivrn install if computer is unauthorized
This commit is contained in:
parent
162ac1394e
commit
121a69a04f
1 changed files with 3 additions and 0 deletions
|
@ -161,6 +161,9 @@ impl SimpleComponent for InstallWivrnBox {
|
||||||
self.install_runner.take();
|
self.install_runner.take();
|
||||||
self.set_install_wivrn_status(match status {
|
self.set_install_wivrn_status(match status {
|
||||||
None | Some(0) => InstallWivrnStatus::Success,
|
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!(
|
Some(err_code) => InstallWivrnStatus::Done(Some(format!(
|
||||||
"ADB exited with code \"{c}\"",
|
"ADB exited with code \"{c}\"",
|
||||||
c = err_code
|
c = err_code
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue