Skip to content

Commit ed80051

Browse files
committed
Check exit code when running command
1 parent 848b25e commit ed80051

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils/adb.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ abstract class Adb {
136136
_runningProcesses.add(processFuture);
137137

138138
var process = await processFuture;
139-
if (process.stderr != null && process.stderr.toString().isNotEmpty) {
139+
if (process.stderr != null && process.stderr.toString().isNotEmpty && process.exitCode != 0) {
140140
final error = process.stderr;
141141
Trace.verbose("Error $error");
142142
debugPrintStack();

0 commit comments

Comments
 (0)