Skip to content

Commit ca0f6e7

Browse files
kodenamekrakFernthedev
authored andcommitted
Check exit code when running command
1 parent c45fb8d commit ca0f6e7

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)