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:
Todd Volkert
2017-07-10 10:02:11 -07:00
committed by GitHub
parent 0ac2232eda
commit 926a096efd
2 changed files with 8 additions and 3 deletions

View File

@@ -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;
}