Skip to content

Commit 9d2536b

Browse files
committed
Add "ask laurie" description for connection issues
Should find more problems but I might be inondated
1 parent 727856a commit 9d2536b

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

mbf-site/src/App.tsx

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ async function connect(
3939

4040
connection = await quest.connect();
4141
} catch(err) {
42-
if(String(err).includes("Unable to claim interface")) {
42+
if(String(err).includes("The device is already in used")) {
43+
Log.warn("Full interface error: " + err);
4344
// Some other ADB daemon is hogging the connection, so we can't get to the Quest.
4445
return "DeviceInUse";
4546
} else {
@@ -159,7 +160,9 @@ function ChooseDevice() {
159160
<ErrorModal isVisible={connectError != null}
160161
title="Failed to connect to device"
161162
description={connectError}
162-
onClose={() => setConnectError(null)}/>
163+
onClose={() => setConnectError(null)}>
164+
<AskLaurie />
165+
</ErrorModal>
163166

164167
<ErrorModal isVisible={deviceInUse}
165168
onClose={() => setDeviceInUse(false)}
@@ -171,6 +174,13 @@ function ChooseDevice() {
171174
}
172175
}
173176

177+
178+
// I might regret this
179+
function AskLaurie() {
180+
return <p>If you can't fix the issue, PLEASE hit up <code>Lauriethefish</code> on Discord for further support. We're working on fixing connection/driver issues
181+
right now and can only do so with <i>your help!</i></p>
182+
}
183+
174184
function DeviceInUse() {
175185
return <>
176186
<p>Some other app is trying to access your Quest, e.g. SideQuest.</p>
@@ -179,6 +189,8 @@ function DeviceInUse() {
179189
<p>To fix this, close SideQuest if you have it open, press <span className="codeBox">Win + R</span> and type the following text, and finally press enter.</p>
180190
<span className="codeBox">taskkill /IM adb.exe /F</span>
181191
<p>Alternatively, restart your computer.</p>
192+
193+
<AskLaurie />
182194
</>
183195
: <p>To fix this, restart your {isViewingOnMobile() ? "phone" : "computer"}.</p>}
184196
</>

0 commit comments

Comments
 (0)