mirror of
https://github.com/Microsoft/vscode
synced 2024-11-05 18:29:38 +00:00
fix reporter
This commit is contained in:
parent
47bf9b65e8
commit
bd0e3aa0cc
2 changed files with 3 additions and 3 deletions
|
@ -73,10 +73,10 @@ function createReporter() {
|
|||
return es.through(null, function () {
|
||||
onEnd();
|
||||
if (emitError && errors.length > 0) {
|
||||
errors.__logged__ = true;
|
||||
if (!errors.__logged__) {
|
||||
log();
|
||||
}
|
||||
errors.__logged__ = true;
|
||||
var err = new Error("Found " + errors.length + " errors");
|
||||
err.__reporter__ = true;
|
||||
this.emit('error', err);
|
||||
|
|
|
@ -94,12 +94,12 @@ export function createReporter(): IReporter {
|
|||
onEnd();
|
||||
|
||||
if (emitError && errors.length > 0) {
|
||||
(errors as any).__logged__ = true;
|
||||
|
||||
if (!(errors as any).__logged__) {
|
||||
log();
|
||||
}
|
||||
|
||||
(errors as any).__logged__ = true;
|
||||
|
||||
const err = new Error(`Found ${errors.length} errors`);
|
||||
(err as any).__reporter__ = true;
|
||||
this.emit('error', err);
|
||||
|
|
Loading…
Reference in a new issue