Commit fc610604 authored by Jason Simmons's avatar Jason Simmons

Log an error if the Android intent fails during flutter refresh (#3988)

parent f284c1a0
......@@ -409,7 +409,14 @@ class AndroidDevice extends Device {
'--es', 'snapshot', _deviceSnapshotPath,
activity,
]);
runCheckedSync(cmd);
RegExp errorRegExp = new RegExp(r'^Error: .*$', multiLine: true);
Match errorMatch = errorRegExp.firstMatch(runCheckedSync(cmd));
if (errorMatch != null) {
printError(errorMatch.group(0));
return false;
}
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment