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

Unified Diff: pkg/dartdoc/mirrors/dart2js_mirror.dart

Issue 10905013: Change a few more uses of the old 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/unittest/expect.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dartdoc/mirrors/dart2js_mirror.dart
diff --git a/pkg/dartdoc/mirrors/dart2js_mirror.dart b/pkg/dartdoc/mirrors/dart2js_mirror.dart
index 152ca576652515a022839786869d5c5f75fef2c1..6579d9a7c6a02bbfa012099a0a207b649575737a 100644
--- a/pkg/dartdoc/mirrors/dart2js_mirror.dart
+++ b/pkg/dartdoc/mirrors/dart2js_mirror.dart
@@ -212,7 +212,7 @@ class LibraryCompiler extends api.Compiler {
bool _runList(List<Uri> uriList) {
try {
runCompilerList(uriList);
- } catch (CompilerCancelledException exception) {
+ } on CompilerCancelledException catch (exception) {
log(exception.toString());
log('compilation failed');
return false;
@@ -294,7 +294,7 @@ class Dart2JsCompilation implements Compilation {
String source;
try {
source = readAll(uriPathToNative(uri.path));
- } catch (FileIOException ex) {
+ } on FileIOException catch (ex) {
throw 'Error: Cannot read "${relativize(cwd, uri)}" (${ex.osError}).';
}
sourceFiles[uri.toString()] =
« no previous file with comments | « no previous file | pkg/unittest/expect.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698