Skip to content

Commit eaeaf35

Browse files
committed
Better messaging on failed to connect sync
1 parent 85e381a commit eaeaf35

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/src/main/java/com/futo/platformplayer/activities/SyncPairActivity.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,11 @@ class SyncPairActivity : AppCompatActivity() {
122122
} catch (e: Throwable) {
123123
withContext(Dispatchers.Main) {
124124
_layoutPairingError.visibility = View.VISIBLE
125-
_textError.text = e.message
125+
if(e.message == "Failed to connect") {
126+
_textError.text = "Failed to connect.\n\nThis may be due to not being on the same network, due to firewall, or vpn.\nSync currently operates only over local direct connections."
127+
}
128+
else
129+
_textError.text = e.message
126130
_layoutPairing.visibility = View.GONE
127131
Logger.e(TAG, "Failed to pair", e)
128132
}

0 commit comments

Comments
 (0)