From 704f7ce516ef1ff12d64b9d208ea6a9fa0d5698b Mon Sep 17 00:00:00 2001 From: velvettear Date: Mon, 2 May 2022 15:34:50 +0200 Subject: [PATCH] fixed error logging --- classes/AudioBuffer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/AudioBuffer.js b/classes/AudioBuffer.js index ae063d8..85cafa3 100644 --- a/classes/AudioBuffer.js +++ b/classes/AudioBuffer.js @@ -183,7 +183,7 @@ class StreamBuffer extends EventEmitter { if (this.streams.output === undefined) { return; } - this.streams.output.on('error', () => { + this.streams.output.on('error', (error) => { logger.error('output stream encountered an error: ' + error); }); this.streams.output.on('written', (bytes) => {