refactor(dart/transform): Show friendly messages for transform failures
Previously, the error messages coming out of the Dart transformer were opaque when those errors came from the analyzer (for example, analyzer parse errors). Log more useful errors when they are caught by the transform code.
This commit is contained in:
@@ -25,7 +25,7 @@ void allTests() {
|
||||
inputPath = 'directive_linker/simple_files/$inputPath';
|
||||
var actual = formatter
|
||||
.format(await linkNgDeps(reader, new AssetId('a', inputPath)));
|
||||
expect(actual).toEqual(expected);
|
||||
expect(actual).toEqual(formatter.format(expected));
|
||||
}
|
||||
});
|
||||
|
||||
@@ -41,7 +41,7 @@ void allTests() {
|
||||
inputPath = 'directive_linker/simple_export_files/$inputPath';
|
||||
var actual = formatter
|
||||
.format(await linkNgDeps(reader, new AssetId('a', inputPath)));
|
||||
expect(actual).toEqual(expected);
|
||||
expect(actual).toEqual(formatter.format(expected));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user