Skip to content

Commit

Permalink
Check exit code when running command
Browse files Browse the repository at this point in the history
  • Loading branch information
kodenamekrak authored and Fernthedev committed Oct 19, 2024
1 parent c45fb8d commit ca0f6e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/adb.dart
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ abstract class Adb {
_runningProcesses.add(processFuture);

var process = await processFuture;
if (process.stderr != null && process.stderr.toString().isNotEmpty) {
if (process.stderr != null && process.stderr.toString().isNotEmpty && process.exitCode != 0) {
final error = process.stderr;
Trace.verbose("Error $error");
debugPrintStack();
Expand Down

0 comments on commit ca0f6e7

Please sign in to comment.