files - properly emit errors (#78364)

This commit is contained in:
Benjamin Pasero 2019-08-06 11:18:04 +02:00
parent 6ac91118fa
commit c223ba6f80

View file

@ -137,7 +137,7 @@ export class NodeTextFileService extends TextFileService {
});
// Error
stream.on('error', error => this.emit(error));
stream.on('error', error => this.emit('error', error));
}
// ensure the stream is flowing