diff options
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 |
commit | 5c2aca67db34301e4fb11c28b1b737e9e47c88ab (patch) | |
tree | 020613544b5f069feff672f7bc7be7a6cb77ae27 /src/write/build-modes | |
parent | 98133431c801a823f3430b0e178c56350e12622c (diff) |
write: live-dev-server: fix bad error response for data.json
Diffstat (limited to 'src/write/build-modes')
-rw-r--r-- | src/write/build-modes/live-dev-server.js | 2 |
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); } |