Use default source path for BabelCompiler errors.

The inputFile.getPathInPackage() path is not very useful for package
files, since it does not contain the name of the package.

This change makes BabelCompiler behave more like the CoffeeCompiler, which
also omits the explicit sourcePath option to the inputFile.error method.

Fixes #5551.
This commit is contained in:
Ben Newman
2015-10-27 18:54:01 -04:00
parent 0aa1291fd6
commit d9b895e6ec

View File

@@ -60,7 +60,6 @@ BCp.processFilesForTarget = function (inputFiles) {
if (e.loc) {
inputFile.error({
message: e.message,
sourcePath: inputFilePath,
line: e.loc.line,
column: e.loc.column,
});