diff --git a/lib/PipeTransport.js b/lib/PipeTransport.js index a20df858..fb87a97d 100644 --- a/lib/PipeTransport.js +++ b/lib/PipeTransport.js @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -const {helper} = require('./helper'); +const {helper, debugError} = require('./helper'); /** * @implements {!Puppeteer.ConnectionTransport} @@ -31,7 +31,9 @@ class PipeTransport { helper.addEventListener(pipeRead, 'close', () => { if (this.onclose) this.onclose.call(null); - }) + }), + helper.addEventListener(pipeRead, 'error', debugError), + helper.addEventListener(pipeWrite, 'error', debugError), ]; this.onmessage = null; this.onclose = null;