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

Unified Diff: utils/pub/pubspec.dart

Issue 14253005: Migrate pub away from throwing strings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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
Index: utils/pub/pubspec.dart
diff --git a/utils/pub/pubspec.dart b/utils/pub/pubspec.dart
index de3f15577e27affa6ca5a65cf1bc77e89ef1259a..f7ac002eb297c9e6377c8e5185b0bc44d4f94652 100644
--- a/utils/pub/pubspec.dart
+++ b/utils/pub/pubspec.dart
@@ -54,7 +54,7 @@ class Pubspec {
return pubspec;
} on FormatException catch (ex) {
- throw 'Could not parse $pubspecPath:\n${ex.message}';
+ throw new FormatException('Could not parse $pubspecPath:\n${ex.message}');
Bob Nystrom 2013/04/18 18:18:31 This should be a UserFacingException.
nweiz 2013/04/18 18:37:24 Done.
}
}

Powered by Google App Engine
This is Rietveld 408576698