Minor fixes in tools: (#11009)
* Include the process' `stdout` and `stderr` when it returns a non-zero exit code in `runCheckedAsync()` * Defensively catch errors in `AndroidDevice.isAppInstalled()` and return false
This commit is contained in:
@@ -211,7 +211,7 @@ Future<RunResult> runCheckedAsync(List<String> cmd, {
|
||||
environment: environment
|
||||
);
|
||||
if (result.exitCode != 0)
|
||||
throw 'Exit code ${result.exitCode} from: ${cmd.join(' ')}';
|
||||
throw 'Exit code ${result.exitCode} from: ${cmd.join(' ')}:\n$result';
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user