diff --git a/package.json b/package.json index aab82dd..41f5f09 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wds", - "version": "0.17.1", + "version": "0.17.2", "author": "Harry Brundage", "license": "MIT", "bin": { diff --git a/src/child-process-registration.ts b/src/child-process-registration.ts index 69b3d45..caa14f7 100644 --- a/src/child-process-registration.ts +++ b/src/child-process-registration.ts @@ -20,6 +20,9 @@ const throttledRequireFlush = throttle(() => { 300 ); + request.on("error", (error: any) => { + log.debug(`Unexpected request error while flushing require notifications`, error); + }); request.write(JSON.stringify(pendingRequireNotifications)); request.end(); pendingRequireNotifications = [];