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

Unified Diff: sdk/lib/_internal/pub/lib/src/source/git.dart

Issue 308793016: Ensure that a friendly error is printed whenever git can't be found. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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 | « sdk/lib/_internal/pub/lib/src/git.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/lib/src/source/git.dart
diff --git a/sdk/lib/_internal/pub/lib/src/source/git.dart b/sdk/lib/_internal/pub/lib/src/source/git.dart
index c7329b29b785fd95adaeb731de26b92546197cef..b0488c4ebbe14d6413c5946fdb94f8ca3cc32fb3 100644
--- a/sdk/lib/_internal/pub/lib/src/source/git.dart
+++ b/sdk/lib/_internal/pub/lib/src/source/git.dart
@@ -53,7 +53,7 @@ class GitSource extends CachedSource {
return git.isInstalled.then((installed) {
if (!installed) {
- throw new Exception(
+ throw new ApplicationException(
"Cannot get ${id.name} from Git (${_getUrl(id)}).\n"
"Please ensure Git is correctly installed.");
}
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/git.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698