« get me outta code hell

live-dev-server: let ERR_STREAM_UNABLE_TO_PIPE fly - 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:
author(quasar) nebula <qznebula@protonmail.com>2025-12-23 19:18:53 -0400
committer(quasar) nebula <qznebula@protonmail.com>2025-12-23 19:18:53 -0400
commit586e58fec4348f1a144fe59895dd11868b742c9f (patch)
treed7dd683a2394daf83ebe7fbc953f649e98e017c1 /src/write
parent05414b0c6ac85e26e9de67df43ae55adf5138df5 (diff)
live-dev-server: let ERR_STREAM_UNABLE_TO_PIPE fly preview
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;
         }