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

Unified Diff: utils/tests/pub/command_line_config.dart

Issue 14253005: Migrate pub away from throwing strings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes 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
« no previous file with comments | « utils/pub/utils.dart ('k') | utils/tests/pub/descriptor/tar.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/pub/command_line_config.dart
diff --git a/utils/tests/pub/command_line_config.dart b/utils/tests/pub/command_line_config.dart
index 2fbc3cd4a068c95156ced36be1c80bc4be47a776..9a60951be7c30c88b9e7aeef2a8799c89f8f7d9a 100644
--- a/utils/tests/pub/command_line_config.dart
+++ b/utils/tests/pub/command_line_config.dart
@@ -153,7 +153,9 @@ class _StackFrame {
if (match == null) {
match = coreRegExp.firstMatch(text);
- if (match == null) throw "Couldn't parse stack trace line '$text'.";
+ if (match == null) {
+ throw FormatException("Couldn't parse stack trace line '$text'.");
+ }
isCore = true;
}
« no previous file with comments | « utils/pub/utils.dart ('k') | utils/tests/pub/descriptor/tar.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698