Index: pkg/analyzer/lib/src/task/general.dart |
diff --git a/pkg/analyzer/lib/src/task/general.dart b/pkg/analyzer/lib/src/task/general.dart |
index 69a808ee386bb7f1a377e5617f286c72f5284764..d7a56a3026ab7f451a1f67537e30838227fb5275 100644 |
--- a/pkg/analyzer/lib/src/task/general.dart |
+++ b/pkg/analyzer/lib/src/task/general.dart |
@@ -38,9 +38,9 @@ class GetContentTask extends SourceBasedAnalysisTask { |
TimestampedData<String> data = context.getContents(source); |
outputs[CONTENT] = data.data; |
outputs[MODIFICATION_TIME] = data.modificationTime; |
- } catch (exception, stackTrace) { |
- throw new AnalysisException('Could not get contents of $source', |
- new CaughtException(exception, stackTrace)); |
+ } catch (exception) { |
+ outputs[CONTENT] = ''; |
+ outputs[MODIFICATION_TIME] = -1; |
} |
} |