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:
Tim Blasi
2015-08-05 17:39:37 -07:00
parent 07b9be798c
commit 3db0ae1dac
2 changed files with 46 additions and 5 deletions
@@ -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));
}
});
}