Added additional logging to _listCoreDevices (#159275)

Attempting to collect additional context into the failure outlined in
https://github.com/flutter/flutter/issues/141892
This commit is contained in:
Ben Konyi 2024-11-21 13:33:15 -05:00 committed by GitHub
parent 399403ae6a
commit 93d772c5cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -94,6 +94,10 @@ class IOSCoreDeviceControl {
_logger.printError('The process exited with code ${result.exitCode} and');
_logger.printError('Stdout:\n\n${result.stdout.trim()}\n');
_logger.printError('Stderr:\n\n${result.stderr.trim()}');
_logger.printError('Using file system type: ${_fileSystem.runtimeType}');
if (_fileSystem is LocalFileSystem) {
_logger.printError('LocalFileSystem disposed: ${_fileSystem.disposed}');
}
throw StateError('Expected the file ${output.path} to exist but it did not');
} else if (isToolPossiblyShutdown) {
return <Object?>[];