« get me outta code hell

write: live-dev-server: fix bad error response for data.json - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-08-23 18:35:33 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-08-23 18:35:33 -0300
commit5c2aca67db34301e4fb11c28b1b737e9e47c88ab (patch)
tree020613544b5f069feff672f7bc7be7a6cb77ae27
parent98133431c801a823f3430b0e178c56350e12622c (diff)
write: live-dev-server: fix bad error response for data.json
-rw-r--r--src/write/build-modes/live-dev-server.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/write/build-modes/live-dev-server.js b/src/write/build-modes/live-dev-server.js
index 2767a02f..28cf7a48 100644
--- a/src/write/build-modes/live-dev-server.js
+++ b/src/write/build-modes/live-dev-server.js
@@ -163,7 +163,7 @@ export async function go({
         if (!quietResponses) console.log(`${requestHead} [200] /data.json`);
       } catch (error) {
         response.writeHead(500, contentTypeJSON);
-        response.end({error: `Internal error serializing wiki JSON`});
+        response.end(`Internal error serializing wiki JSON`);
         console.error(`${requestHead} [500] /data.json`);
         showError(error);
       }