include exception details in tool exit displayed when adb call fails (#147498)

Fixes #125971
This commit is contained in:
Andrew Kolos
2024-04-30 10:38:21 -07:00
committed by GitHub
parent af270935bb
commit ce822ec8bb
2 changed files with 12 additions and 3 deletions

View File

@@ -74,7 +74,8 @@ class AndroidDevices extends PollingDeviceDiscovery {
} on ProcessException catch (exception) {
throwToolExit(
'Unable to run "adb", check your Android SDK installation and '
'$kAndroidHome environment variable: ${exception.executable}',
'$kAndroidHome environment variable: ${exception.executable}\n'
'Error details: ${exception.message}',
);
}
final List<AndroidDevice> devices = <AndroidDevice>[];