Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1336)

Unified Diff: utils/pub/git.dart

Issue 11066088: Show git command that failed. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/git.dart
diff --git a/utils/pub/git.dart b/utils/pub/git.dart
index 574c01c8dc48d44cf28ca4adf437234a67a39bc3..31e8b27c9bc20060d55741880fd7a882cb2bce56 100644
--- a/utils/pub/git.dart
+++ b/utils/pub/git.dart
@@ -28,7 +28,8 @@ Future<List<String>> run(List<String> args, [String workingDir]) {
return runProcess(git, args, workingDir);
}).transform((result) {
if (!result.success) throw new Exception(
- 'Git failed:\n${Strings.join(result.stderr, "\n")}');
+ 'Git error. Command: git ${Strings.join(args, " ")}\n'
+ '${Strings.join(result.stderr, "\n")}');
return result.stdout;
});
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698