We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77d7258 commit 2eea7bfCopy full SHA for 2eea7bf
lib/src/utils.dart
@@ -425,12 +425,13 @@ String cmd(List<String> cmd,
425
final result = processManager.runSync(cmd, workingDirectory: workingDirectory, runInShell: true);
426
if(trace) _traceCommand(cmd, workingDirectory: workingDirectory);
427
if (result.exitCode != 0) {
428
- error = StdoutException(result.stdout, OSError(result.stderr, result.exitCode));
429
- throw error;
+ throw StdoutException(result.stdout, OSError(result.stderr, result.exitCode));
430
}
431
// return stdout
432
return result.stdout;
433
} on StdoutException catch (e) {
+ error = e;
434
+ if(!retry) rethrow;
435
sleep(Duration(seconds: 5));
436
437
0 commit comments