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

Unified Diff: utils/pub/pub.dart

Issue 10887023: Use new try-catch syntax in runtime/, tools/, and utils/. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
« no previous file with comments | « utils/css/uitest.dart ('k') | utils/pub/version.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/pub.dart
diff --git a/utils/pub/pub.dart b/utils/pub/pub.dart
index b413602b91e3a0e54b97ee9ec70d784805dc85bf..88675391e3db5da7c55b9c37a3cc8e970ae34254 100644
--- a/utils/pub/pub.dart
+++ b/utils/pub/pub.dart
@@ -59,7 +59,7 @@ main() {
var globalOptions;
try {
globalOptions = pubArgParser.parse(new Options().arguments);
- } catch (FormatException e) {
+ } on FormatException catch (e) {
printUsage(description: e.message);
return;
}
@@ -170,7 +170,7 @@ class PubCommand {
try {
commandOptions = commandParser.parse(commandArgs);
- } catch (FormatException e) {
+ } on FormatException catch (e) {
this.printUsage(description: e.message);
return;
}
@@ -206,7 +206,7 @@ class PubCommand {
if (commandFuture == null) return new Future.immediate(true);
return commandFuture;
- } catch (var error, var trace) {
+ } catch (error, trace) {
handleError(error, trace);
return new Future.immediate(null);
}
« no previous file with comments | « utils/css/uitest.dart ('k') | utils/pub/version.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698