Skip to content

Commit 4f20b2b

Browse files
committed
Don't filter errors from downstream modules
1 parent a3a154b commit 4f20b2b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

plugin.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,7 @@ FlowtypePlugin.prototype._notifyResourceError = function(resource) {
5050
if (resource.callback) {
5151
var errors = [];
5252
if (this._flowStatus && !this._flowStatus.passed) {
53-
errors = this._flowStatus.errors.filter(function (error) {
54-
var mainLoc = mainLocOfError(error);
55-
var mainFile = mainLoc && mainLoc.source;
56-
return mainFile === resource.path;
57-
});
53+
errors = this._flowStatus.errors
5854
}
5955
resource.callback(errors, this._options);
6056
}

0 commit comments

Comments
 (0)