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

Unified Diff: utils/pub/pub.dart

Issue 10850034: Rename BadNumberFormatException -> FormatException. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Re-word comment as TODO. Created 8 years, 4 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/pub.dart
diff --git a/utils/pub/pub.dart b/utils/pub/pub.dart
index 16cfa6fa614c31b9a8124640674c574bf9062183..0b667980291bf12c2396699290f7f15ecaca5155 100644
--- a/utils/pub/pub.dart
+++ b/utils/pub/pub.dart
@@ -58,7 +58,7 @@ main() {
var globalOptions;
try {
globalOptions = pubArgParser.parse(new Options().arguments);
- } catch (ArgFormatException e) {
+ } catch (FormatException e) {
printUsage(description: e.message);
return;
}
@@ -169,7 +169,7 @@ class PubCommand {
try {
commandOptions = commandParser.parse(commandArgs);
- } catch (ArgFormatException e) {
+ } catch (FormatException e) {
this.printUsage(description: e.message);
return;
}

Powered by Google App Engine
This is Rietveld 408576698