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()] = |