Skip to content

Display and control your Android device

Log an error on unexpected device state

Romain Vimonte56f2ac7a9a3
diff --git a/app/src/adb/adb.c b/app/src/adb/adb.c
index 06090b46..7e1c7bc2 100644
--- a/app/src/adb/adb.c
+++ b/app/src/adb/adb.c
@@ -531,6 +531,8 @@ sc_adb_device_check_state(struct sc_adb_device *device,
LOGE("A popup should open on the device to request authorization.");
LOGE("Check the FAQ: "
"<https://github.com/Genymobile/scrcpy/blob/master/FAQ.md>");
+ } else {
+ LOGE("Device could not be connected (state=%s)", state);
}
return false;