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

Unified Diff: pkg/dartdoc/dartdoc.dart

Issue 10917006: More uses of the new try-catch syntax. (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 | « no previous file | pkg/fixnum/test/int_32_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dartdoc/dartdoc.dart
diff --git a/pkg/dartdoc/dartdoc.dart b/pkg/dartdoc/dartdoc.dart
index 075e15d108d5cbdef80b473acd27ef99b742d530..c2a0db1bccd6d54b455cecbaab1fb697bcc00771 100644
--- a/pkg/dartdoc/dartdoc.dart
+++ b/pkg/dartdoc/dartdoc.dart
@@ -253,7 +253,7 @@ void cleanOutputDirectory(Path path) {
// due to invalid result from dir.existsSync() (probably due to race
// conditions).
outputDir.createSync();
- } catch (DirectoryIOException e) {
+ } on DirectoryIOException catch (e) {
// Ignore.
}
}
@@ -520,7 +520,7 @@ class Dartdoc {
// race conditions).
try {
dir.createSync();
- } catch (DirectoryIOException e) {
+ } on DirectoryIOException catch (e) {
// Ignore.
}
}
@@ -696,7 +696,7 @@ class Dartdoc {
// race conditions).
try {
dir.createSync();
- } catch (DirectoryIOException e) {
+ } on DirectoryIOException catch (e) {
// Ignore.
}
}
« no previous file with comments | « no previous file | pkg/fixnum/test/int_32_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698