diff --git a/packages/core/src/engine.js b/packages/core/src/engine.js index 310790ec..b0f161c0 100644 --- a/packages/core/src/engine.js +++ b/packages/core/src/engine.js @@ -177,7 +177,7 @@ export default class Engine extends SafeTransform { if (data === null) { this.nullWasSent = true; this.nullWasSentError = createErrorWith(new Error('As a reminder, the end was recorded at this point'), currentIndex, this.funcName, this.params, chunk); - } else if (this.nullWasSent) { + } else if (this.nullWasSent && !this.errorWasSent) { console.warn(createErrorWith(new Error('Oops, that\'s going to crash ?'), currentIndex, this.funcName, this.params, chunk)); console.warn(this.nullWasSentError); } diff --git a/packages/core/test/statements.js b/packages/core/test/statements.js index 696002d6..a4bdb1e1 100644 --- a/packages/core/test/statements.js +++ b/packages/core/test/statements.js @@ -342,7 +342,6 @@ describe('statements', () => { res.push(chunk); }) .on('end', () => { - console.log({res}); assert.equal(res.length, 0); done(); });