MCPcopy Create free account
hub / github.com/11ty/dev-server / sendError

Method sendError

server.js:920–926  ·  view source on GitHub ↗
({ error })

Source from the content-addressed store, hash-verified

918 }
919
920 sendError({ error }) {
921 this.sendUpdateNotification({
922 type: "eleventy.error",
923 // Thanks https://stackoverflow.com/questions/18391212/is-it-not-possible-to-stringify-an-error-using-json-stringify
924 error: JSON.stringify(error, Object.getOwnPropertyNames(error)),
925 });
926 }
927
928 // reverse of mapUrlToFilePath
929 // /resource/ <= /resource/index.html

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected