« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/write
diff options
context:
space:
mode:
Diffstat (limited to 'src/write')
-rw-r--r--src/write/build-modes/live-dev-server.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/write/build-modes/live-dev-server.js b/src/write/build-modes/live-dev-server.js
index 5dece8d0..67d90c87 100644
--- a/src/write/build-modes/live-dev-server.js
+++ b/src/write/build-modes/live-dev-server.js
@@ -356,6 +356,10 @@ export async function go({
         if (error.code === 'ERR_STREAM_PREMATURE_CLOSE') {
           // Connection was dropped, this is OK.
           return;
+        } else if (error.code === 'ERR_STREAM_UNABLE_TO_PIPE') {
+          // "Cannot pipe to a closed or destroyed stream"
+          // Sus-amongus networking error. Give up, it's probably OK.
+          return;
         } else {
           throw error;
         }