From 121a69a04fc1770da95a7af1df6e636d56df7671 Mon Sep 17 00:00:00 2001 From: Gabriele Musco Date: Wed, 21 Jun 2023 22:58:28 +0200 Subject: [PATCH] feat: better fail error on wivrn install if computer is unauthorized --- src/ui/install_wivrn_box.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ui/install_wivrn_box.rs b/src/ui/install_wivrn_box.rs index 0a58a81..31e64b3 100644 --- a/src/ui/install_wivrn_box.rs +++ b/src/ui/install_wivrn_box.rs @@ -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