MCPcopy Index your code
hub / github.com/pyscript/pyscript / cb

Function cb

core/src/plugins/error.js:17–21  ·  view source on GitHub ↗
(error, ...rest)

Source from the content-addressed store, hash-verified

15 const { stderr } = pyScript.io;
16
17 const cb = (error, ...rest) => {
18 notify(error.message || error);
19 // let other plugins or stderr hook, if any, do the rest
20 return stderr(error, ...rest);
21 };
22
23 // override it with our own logic
24 pyScript.io.stderr = pyScript.type === "py" ? cb : buffered(cb);

Callers 1

createFunctionFunction · 0.85

Calls 1

notifyFunction · 0.85

Tested by

no test coverage detected